Hi, i've a problem with url..how i retrieve the mapping of url in a jsp? for
example i have an jsp as index and an action-mapping as it:
action type=org.apache.struts.actions.ForwardAction path=/homeA
parameter=/index.jsp /
now in another jsp call homeA.do and i see index.jsp in my browser, the
(with request.getRequestURI() )i obtain /index.jsp and not homeA.do
getRequestURI() should return the exact address the client requested,
minus query string. Perhaps you set redirect to true? But then the
address displayed in the browser should have been updated to index.jsp
as well.
--
Eric
(with request.getRequestURI() )i obtain /index.jsp and not
homeA.do
getRequestURI() should return the exact address the client
requested,
minus query string. Perhaps you set redirect to true? But then the
address displayed in the browser should have been updated to
index.jsp
as well.
(Sorry for previous empty message : too quickly clicked !)
On tomcat, websphere and Weblogic I get CURRENT servlet (and JSP) URI
when using
request.getRequestURI(). API Javadoc says :
Returns the part of this request's URL from the protocol name up to
the query string in the first line of the
So I don't this it is possible to get the as in browser URI.
You're right, just checked SRV.8.4. Strange that this had never bitten
me, of course I always use html:link @page or @action...
Perhaps one workaround would be to store the original request object as
a request attribute in the Action
5 matches
Mail list logo