Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Problem with error-page

Jim Kennedy

2004-05-20

Replies:


I am trying to configure a custom error page when users try to access an
area of my site that they don't have sufficient rights to access.

The book says this to configure this in web.xml:

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

This doesn't work for me, but....

 <error-page>
   <error-code>403</error-code>
   <location>/error/403.html</location>
 </error-page>

Does work. Is there a problem with using JSP's.


I'm am using JBOSS with Tomcat, but that shouldn't matter. It's still the
Tomcat engine. I'm also using Struts.

I'm using Tomcat 4.1.24.

Anybody have troublem with this out there?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.