This content has been marked as final.
Show 3 replies
-
1. Re: getRequestURL doesn't return expected result
kdolan1 Jun 21, 2012 8:40 AM (in response to kdolan1)Due to lack of response, I opened https://issues.jboss.org/browse/AS7-5040.
-
2. Re: getRequestURL doesn't return expected result
kdolan1 Jun 22, 2012 9:12 AM (in response to kdolan1)So the JIRA issue was rejected for the following reason:
FORM uses internal forwards and things, and it may have changed from very old releases (which may have used a redirect instead). The request dispatcher state is available to the servlet, so all the needed information should be available (but not through the browser URL).
I don't quite understand the explanation but I found instead of request.getRequestURL() the following works...
(String)request.getAttribute(RequestDispatcher.FORWARD_REQUEST_URI);
-
3. Re: getRequestURL doesn't return expected result
jaikiran Jun 22, 2012 10:05 AM (in response to kdolan1)Kelly Dolan wrote:
I don't quite understand the explanation but I found instead of request.getRequestURL() the following works...
(String)request.getAttribute(RequestDispatcher.FORWARD_REQUEST_URI);
Actually, that's what the JIRA comment meant. So you are now using the right API.