tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: How to get the offending uri when handling a 404 error?
Date Wed, 02 Jun 2004 12:50:26 GMT

Does your 404.jsp have the isErrorPage directive set to true?

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Joseph Shraibman []
>Sent: Tuesday, June 01, 2004 7:57 PM
>Subject: How to get the offending uri when handling a 404 error?
>I put this in my web.xml:
>... and this in 404.jsp:
>ErrorData ed = pageContext.getErrorData();
>if (ed != null) url = ed.getRequestURI() ;
>but it throws:
>StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
>         at
>         at org.apache.jsp._404_jsp._jspService(
>         at
>         at
>         at
>         at
>         at
>(this is with tomcat 5.0.24)
>So how can I get the url the the user tried to request?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message