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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: road_blocked.jsp
 
Similar Threads
Handling session timeout with errorPage
Simple Connection Pool Question
Exception Handling
How to include errorpage in xhtml page.
how to install tomcat 5.5 in windows vista