Redirecting error page 404...
- From: "Tom Vercauteren via JavaKB.com" <forum@xxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 18:16:23 GMT
Hi,
i try to make an error page with jsp on a tomcat 5.
Everything is ok, but i only want to show the name of the URL the user has
typed and isn't found.
The code in my jsp is a very simple html page and the part where i show the
url is the following ... :
The resource you are trying to reach, <%= request.getRequestURL()%>,
does not exist on this server.
But when my errorpage shows, i get the name of the error page, not the url
the user has used...
The user types : http://localhost/mytestapp/guess.jsp
and the message shown by the browser = The resource you are trying to
reach, http://localhost/mytestapp/filenotfound.jsp
does not exist on this server.
Anyone any suggestion?
Thank you very much.
Greets,
Tom
PS : i'm using jdk 1.4 & eclipse 3.0
--
Message posted via http://www.javakb.com
.
- Follow-Ups:
- Re: Redirecting error page 404...
- From: Tor Iver Wilhelmsen
- Re: Redirecting error page 404...
- Prev by Date: total beginner in java.net:how do I make a explorer?
- Next by Date: Re: Saving and Opening an Array List
- Previous by thread: total beginner in java.net:how do I make a explorer?
- Next by thread: Re: Redirecting error page 404...
- Index(es):
Relevant Pages
|