On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote:

Hi guys,

I have this problem: I'm using websphere 4, wth JDK 1.3 and J2EE 1.2, and
struts.
I have set an action that after doing some coding would forward
(redirect=false) to a jsp. In the browser url I correctly see the .do url.

If in that page I ask for a request.getRequestURI() I get the url of the new
jsp. How should I find out the old .do url as the request is still the same?

request.getRequestURL() work for me, returning full URL including
"http" and port number. If you need URI only, use
request.getAttribute("javax.servlet.forward.request_uri")

http://www.javaworld.com/javaworld/jw-03-2003/jw-0328-servlet_p.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to