Preserving invalid URL
From: rjames1999 (rjames1999_at_gmail.com)
Date: 12/28/04
- Next message: Andrew Thompson: "Re: Compiler error"
- Previous message: Juha Laiho: "Re: Compiler error"
- Next in thread: Josh Martin: "Re: Preserving invalid URL"
- Reply: Josh Martin: "Re: Preserving invalid URL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Dec 2004 07:56:05 -0800
Hello All,
I am working on a java web application and have the need to preserve a
URL that throws a 404 error. I have the following entered into my
web.xml:
<error-page>
<error-code>404</error-code>
<location>/servlet/RequestParameterAction</location>
</error-page>
This works fine. In the servlet I forward on to an appropriate page
after some processing. What I am trying to do now is capture the
incorrect URL. However, when I get the request URI/URL all I get is
the servlet address, for example:
/mycontext/servlet/RequestParameterAction
Is there a way to programmatically trap the URL that threw the 404
error? I'd prefer to not have to go and tweak the webserver settings.
I'm running this application under JRun 3.1, although I've tested it
under 4.0 and get the same results.
Thanks!
R
- Next message: Andrew Thompson: "Re: Compiler error"
- Previous message: Juha Laiho: "Re: Compiler error"
- Next in thread: Josh Martin: "Re: Preserving invalid URL"
- Reply: Josh Martin: "Re: Preserving invalid URL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|