tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Smart" <...@jimsmart.org>
Subject RE: custom error page rewrite uri
Date Wed, 27 Nov 2002 11:41:11 GMT
Hi,

I can confirm this is not working as intended on Apache 4.1.x 

But I can't be of any more help other than to suggest you file a bug?

Jim


> -----Original Message-----
> From: Alexius Luke [mailto:luke@ibro.co.jp]
> Sent: 25 November 2002 05:29
> To: tomcat-dev@jakarta.apache.org
> Subject: custom error page rewrite uri
> 
> 
> Hi all,
> 
>           I use Apache Tomcat 4.1.12 on Linux.For my aplications 
> need I have configured a custom error jsp age for the error-code 
> 404.So when any irrelevant url is requested this jsp page is invoked.
> 
> <error-page>
> <error-code>404</error-code>
> <location>/error_request.jsp</location>
> </error-page>
> 
> http://localhost:8080/irrelevantpage
> 
> I need to get the requested irrelevant uri in the 
> error_request.jsp page and process accordingly.But in my jsp when 
> I use the request.getRequestURI() it gives me the current pages 
> uri (i.e) /error_request.jsp instead of /irrelevantpage.
> could anybody help me 
> Is there any place in the configuration files to specify this or 
> is it this wat that the container works.
> Thanx in advance,
> 
> p.s. In tomcat3.2 it works as I expect.But in tomcat4.1.12 it isnt.
> 
> -Alexius Luke



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message