You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joseph Shraibman <jk...@selectacast.net> on 2004/06/25 22:44:36 UTC

Re: Problem using jsp to handle 404s from nonjsps

Akash Jauhar wrote:
> Assuming that you have an apache in front of tomcat configure apache to
> specify that 404.jsp is your custom page for handling 404 errors for
> content that is served by apache. This should help you log all broken
> links as well as missing images and other content
> 
> Hope this helps
> 
> Apache directive that needs to be modified is as follows
> 
> ErrorDocument 404 </cgi-bin/error404.cgi> or </404.jsp>
> 
> 
Right, I already do that.  My problem is in the jsp that 
request.getRequestURL().toString() returns 404.jsp and not the page that 
the user requested.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org