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:

http://groups.yahoo.com/group/jetty-support/message/5239


Oreste Luci




Graham Bleach wrote:

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





Reply via email to