This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Unavailable Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Servlets
Bookmark "Unavailable Exception" Watch "Unavailable Exception" New topic
Author

Unavailable Exception

Meng Tan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
I have the following entry in my web.xml file:
<error-page>
<exception-type>
javax.servlet.UnavailableException
</exception-type>
<location>
/MyErrorPage.html
</location>
</error-page>
I also have a servlet class that throws UnavailableException in its doGet() method.
However, MyErrorPage.html is not displayed when I make a request to the servlet.
What is wrong???
Please help.
Meng Tan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
Just to add:
When I change "javax.servlet.UnavailableException" to "javax.servlet.ServletException" in the <exception-type> tag of web.xml and throw UnavailableException in my servlet, the specified html page is displayed.
I m using Tomcat 4.0.1.
Please help!
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unavailable Exception