Thanks for answering resurfacing this thread! I just happened to see my
name and realized that I was the one who started it originally... but
with no response when I first answered. So with mod_jk there is a way to
pass in apache environment variables to tomcat? How do you access them?
Thanks
That did it, thanks. This is what I did:
1. In Apache httpd.conf:
JkEnvVar REDIRECT_URL NULL
ErrorDocument 404 /404.jsp
2. In 404.jsp:
%=request.getAttribute(REDIRECT_URL)%
And that way I can capture the URL the user typed.
Thanks for all the help.
Here goes a link I found useful:
On Thu, May 20, 2004 at 07:53:44AM -0700, Daniel Gibby wrote:
Thanks for answering resurfacing this thread! I just happened to see my
name and realized that I was the one who started it originally... but
with no response when I first answered. So with mod_jk there is a way to
pass in apache
Daniel Gibby wrote:
Is it possible to access environment variables in tomcat that were set
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
: Re: access ENV variables
Daniel Gibby wrote:
Is it possible to access environment variables in tomcat that were
set
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
:[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
set
by apache?
Specifically the REDIRECT_ * variables that are set by ErrorDocument
, May 19, 2004 3:41 PM
To: Tomcat Users List
Subject: Re: access ENV variables
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
On Wed, Apr 07, 2004 at 02:19:25PM -0700, Daniel Gibby wrote:
Is it possible to access environment variables in tomcat that were set
by apache?
Which connector are you using? With mod_jk, you need to specify them in
your httpd.conf:
JkEnvVar ENVVAR
They are then set as request attributes.
G
Is it possible to access environment variables in tomcat that were set
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