Jon Wingfield wrote:
Have you tried the request attributes specified in section "SRV.9.9
Error Handling" of the servlet spec? Specifically, the request attribute
named "javax.servlet.error.request_uri".
No, I haven't. Thank you for your help, it works fine now.
Tomas Pop wrote:
Hello,
I have a problem with change of the method
HttpServletRequest.getRequestURL() in Java EE 5. I have this situation:
URL matches http://server/app/page-key-word-string
These URLs generates 404 Tomcat error page, which redirects (according
to web.xml settings) to redirectServlet, where I get the client URL by
calling request.getRequestURL() and then I parse the
page-key-word-string and select the matching page from DB.
This worked fine in Java EE 1.4 but in Java EE 5 the getRequestURL()
method returns the path to redirectServlet instead of the client URL.
Please, where can I get the path specified by the client after Tomcat
404 error page redirection? Or is there other way to implement these
functionality?
Thanks a lot.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Mgr. Tomas Pop
Master Internet s.r.o.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]