I define some error code with a specific error page in Tomcat 5.0.27.
But it seems not woeking. For example, I type a non-existed page. It must
show 404 ......, as in the setting, it should display my error.jsp. but it
never show it ..... anything i missed ???

Eric

<!-- error.jsp -->
<%@ page isErrorPage="true" %>

ERROR !!!




<!-- web.xml -->

<!-- Error Pages definition -->
 <error-page>
  <error-code>403</error-code>
  <location>/error.jsp</location>
 </error-page>

 <error-page>
      <error-code>404</error-code>
      <location>/error.jsp</location>
   </error-page>

 <error-page>
  <error-code>500</error-code>
  <location>/error.jsp</location>
 </error-page>

 <error-page>
  <error-code>503</error-code>
  <location>/error.jsp</location>
 </error-page>

==========================
If you know what you are doing,
it is not called RESEARCH!
==========================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to