UrlHelper doesn't use the original requested URL in a Servlet 2.4 container 
when the request has been forwarded
---------------------------------------------------------------------------------------------------------------

         Key: WW-1301
         URL: http://issues.apache.org/struts/browse/WW-1301
     Project: Struts Action 2
        Type: Bug

  Components: Views  
    Versions: WW 2.1.8, WW 2.2.2, WW 2.2.1    
 Environment: WinXP, Tomcat 5.5.17, J2SE 5.0
    Reporter: Erik Pilz


The UrlHelper code uses HttpServletRequest#getRequestURI() to get the URL that 
the user requested. In a servlet 2.4 container this won't work if the request 
has been forwarded. In a 2.4 container the call to 
HttpServletRequest#getRequestURI() will return the URL of the forwarded page. 
The UrlHelper should first try to get the URI from the 
"javax.servlet.forward.request_uri" request attribute. 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to