dcsimg
Using exception-type in a error-page in web.xml
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, February 12, 2003 07:19 PM

The error page mapping is not well defined in the servlet specification. How can I use to map exceptions to an error page? How can I have a catch-all to map all Exceptions to a specific error page? How can I map org.apache.jasper.JasperException's to a specific error page?

Re: Using exception-type in a error-page in web.xml

Posted By:   Massimiliano_Ragazzi  
Posted On:   Monday, February 17, 2003 05:47 AM

You can generate the error page by servlet when you catch the exception you want.

Re: Using exception-type in a error-page in web.xml

Posted By:   AlessandroA_Garbagnati  
Posted On:   Thursday, February 13, 2003 03:39 AM

Hi,

Well, The idea in the specifications is that you can have an error page defined for any type of error, doesn't matter if that is an http error () or a java exception ().


Handling exception in the web application descriptor should be the same that handling exception in a normal application. The catch-all exception should be the java.lang.Throwable, that is the "mother of all the exceptions"...

About | Sitemap | Contact