Reputation: 403
I need to show a message to users like : "The application will be down for two hours". Until now I rename my index.htm
, my login.jsp
and I uploaded another index.html
with that message. Also I upload another html page pointing to my renamed login.jsp
to let me in.
Is there any other way to do that, more simple?
My application server is SunONE 6.1
Upvotes: 0
Views: 2413
Reputation: 4476
Define a default landing page in deployment descriptor file. When any visitor visits your page it should land on that page. Don't provide any link to navigate to other pages.
If you want to achieve something like this question then you can follow the responses.
Upvotes: 0
Reputation: 14897
Web Application contains a file named web.xml
also called Deployment Descriptor.
It contains below tag which will be default executed.
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
You can change default wel-come file list for maintenance hours and restart Web Server.
Upvotes: 1