File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes road_blocked.jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "road_blocked.jsp" Watch "road_blocked.jsp" New topic
Author

road_blocked.jsp

Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
Hi,
assuming i have a tomcat instance that's running several different webapps:
I need to stop some of the apps during the day to apply changes etc.
If a user tries to open one of these webapps he's confronted with
this nasty errorpage
"HTTP Status 503 - This application is not currently available"
Is there a way to show a generic errorpage for ALL webapps
"[company Logo] This service is temporarily not available jaddjaddajadda"
Any tips?
Thank you, J.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12822
    
    5
Yes there is a mechanism to associate errors with HTML web pages. In a web.xml deployment descriptor you can have an error-page element which takes a error-code that gets matched and a location . The example in the API looks like:

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: road_blocked.jsp