Hi,
What I want to do is to know the URI the user typed in the error page. In Apache I have the following:
ErrorDocument 404 /404.jsp
But in the 404.jsp when I obtain the URI I get "/404.jsp", this is because Apache is doing a forward and the original URL (the one the user typed in) is lost.
�Does anyone have an idea how to solve this problem?
Thanks
Oreste
Shapira, Yoav wrote:
Hi, I don't think so. The environment variables are in the environment and are not fed through to the JVM.
Yoav Shapira Millennium Research Informatics
set-----Original Message----- From: Oreste Luci [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 12:08 PM To: Tomcat Users List Subject: Re: access ENV variables
Daniel Gibby wrote:
Is it possible to access environment variables in tomcat that were
by apache?
Specifically the REDIRECT_ * variables that are set by ErrorDocument directives?
Then I can have a servlet return the correct content type. i.e. if it is a gif that has a 404 I can redirect to a graphic that says not found But if a jsp page is missing or won't compile, I can redirect to a different jsp.
Hi,
I'm stuck on the same problem. Any ideas?
Thanks
Oreste
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
