Redirecting error page 404...



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
.



Relevant Pages

  • Re: HTML & Java
    ... > Actually, I know JSP & Servlets, but not very familiar with Tomcat. ... > without requiring starting up of a server. ...
    (comp.lang.java.programmer)
  • The method is undefined for the type - ERROR !!!
    ... When I execute this code on localhost in jsp page everything works good. ... class Film exists and it consists of static method ... When I upload on real server (also Tomcat 5.5.9 but working on Linux) I get ... Method exists on server also. ...
    (comp.lang.java.programmer)
  • Re: JSP page not compiling
    ... Looks like you are using Tomcat. ... application server. ... When i am trying to run my JSP application i am encountered with the ... No Java compiler was found to compile the generated source for the ...
    (comp.lang.java.programmer)
  • Re: MS Access on IIS with Tomcat
    ... >>integrated Tomcat together with my IIS on a windows2000 ... >>server. ... but whenever the JSP ... >>Is it due to security settings on my IIS or is it got to ...
    (microsoft.public.inetserver.iis)
  • Mixing JSP pages between Apache and Tomcat
    ... distribution on the server is dated and I couldn't for the ... In the httpd.conf for Apache, ... Well I figured out that when mod_jk sends the requests over to Tomcat, ... Tomcat expects the .jsp files to be stored _IN_ Tomcat's directory. ...
    (comp.lang.java.programmer)