In WebSphere 5.1 test server for Struts 1.1 application, I noticed that request.getRequestURI() also returns the query string, if the forward happens to have query parameters like below:
<forward name="success" path="/submit.do?my=Update"/> request.getRequestURI() call inside an Action class returns /MyProjWeb/submit.do?my=Update According to specification, getRequestURI() should not return the query string my=Update. According to specification, getRequestURI() should only return /MyProjWeb/submit.do. Is it correct behavior for Struts to return query string also path is appended with query string? Please note that the same code returns /MyProjWeb/submit.do only, when I run it in WebSphere 6.1. I have to maintain code in WebSphere 5.1 (even though it is out of support). My question: Is it valid for Struts 1.1 (for WebSphere 5.1) to also append query string when getRequestURI is invoked? -- View this message in context: http://www.nabble.com/getRequestURI%28%29-returns-query-parameters-for--path%3D%22-submit.do-my%3DUpdate-tp23546934p23546934.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org