struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas De Loof" <>
Subject Re: Problem mapping/url
Date Fri, 07 Mar 2003 12:05:39 GMT
(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 HTTP request"

I think this appends :

When a forward is used, the RequestDispatcher object updates the
request, to put the "forwarded" URI :
(from javadoc) "For a RequestDispatcher obtained via
getRequestDispatcher(), the ServletRequest object has its path
elements and parameters adjusted to match the path of the target

So I don't this it is possible to get the "as in browser" URI.


> > (with request.getRequestURI() )i obtain /index.jsp and not
> getRequestURI() should return the exact address the client
> minus query string. Perhaps you set redirect to true? But then the
> address displayed in the browser should have been updated to
> as well.
> --
> Eric Jain
> --------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message