Problem mapping/url

2003-03-07 Thread modena
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

Re: Problem mapping/url

2003-03-07 Thread Eric Jain
(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

Re: Problem mapping/url

2003-03-07 Thread Nicolas De Loof
(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.

Re: Problem mapping/url

2003-03-07 Thread Nicolas De Loof
(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

Re: Problem mapping/url

2003-03-07 Thread Eric Jain
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