You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Drew Cox <dr...@epredix.com> on 2002/02/21 19:40:09 UTC

Tomcat 4.0.2 - HttpUtils.getRequestURL gives incorrect URL with web.xml redirected error pages

We have a "Invalid URL" error page that is forwarded to using the
<error-code> and <exception-type> elements of the web.xml.

On that page we use the HttpUtils.getRequestURL (req) call to get the
(invalid) requested URL for display.  Under Tomcat 3.3a this works fine,
under tomcat 4.0.2 this give the URL of the error page itself.

I understand the entire HttpUtils class is deprecated under the Servlet 2.3
spec.  And the replacement call HttpServletRequest.getRequestURL() appears
to work fine on 4.0.2.  But it would be great for our migration strategy is
the deprecated call functioned the same.

Anyone else out there had experience with this?

Thanks

Drew


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>