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

http://issues.apache.org/bugzilla/show_bug.cgi?id=39175

           Summary: HttpServletRequest.getRequestURL() doesn't behave
                    properly on error page
           Product: Tomcat 5
           Version: 5.5.16
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Suppose you have a JSP that throws an exception.
Then you have an error page to deal with the exception.
The error page calls request.getRequestURL().
The bug is that this URL will be ".../error.jsp"
instead of the JSP that was actually requested by the client.
The J2EE 1.4 API spec says "Reconstructs the URL the client used to make the
request".
The client did not request ".../error.jsp", the client requested
the original page that threw the exception.
Note this works as expected in Tomcat 4.1.31 but not 5.5.16.
Note there is another API called getRequestURI, which
has a similar problem although this API works consistently wrong
in Tomcat 4.1.31 also.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to