DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6659>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6659

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

           Summary: HttpUtils.getRequestURL gives incorrect URL with web.xml
                    redirected error pages
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to