wood burning stoves 2.0*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 12682
    
    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


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: road_blocked.jsp
 
Similar Threads
Simple Connection Pool Question
Handling session timeout with errorPage
how to install tomcat 5.5 in windows vista
Exception Handling
How to include errorpage in xhtml page.