Hi List,

I've tried to create some custom error pages. I wanted to make one for any exception and one for http errors. I guess that the error-page entry in the web.xml for the exceptions have to look like this.

<error-page>
       <exception-type>java.lang.Exception</exception-type>
       <location>/pages/general/errorpages/exception.jsp</location>
   </error-page>

But how does I handle all http error at one time?

This
   <error-page>
       <error-code>*</error-code>
       <location>/aisdcl/pages/general/errorpages/error.jsp</location>
</error-page> seems not to work. I've search in the internet but everything I saw was only

   <error-page>
       <error-code>404</error-code>
       <location>/aisdcl/pages/general/errorpages/error.jsp</location>
</error-page>
   <error-page>
       <error-code>403</error-code>
       <location>/aisdcl/pages/general/errorpages/error.jsp</location>
</error-page>
   <error-page>
       <error-code>500</error-code>
       <location>/aisdcl/pages/general/errorpages/error.jsp</location>
</error-page>
   .......
   .......
   .......

Is there a method to catch all http errors at once????

Thanks for suggestions

Reply via email to