Re: Find out the old url after struts forwarding

2006-08-02 Thread Wbyeats

But how would I use a mapping.getPath() inside a jsp?

mario
-- 
View this message in context: 
http://www.nabble.com/Find-out-the-old-url-after-struts-forwarding-tf2042007.html#a5623015
Sent from the Struts - User forum at Nabble.com.


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



Re: Find out the old url after struts forwarding

2006-08-02 Thread Wbyeats

> I suppose you could get the http referer but it would have nothing to do 
> with what you see in the browser address bar. 
> req.getHeader("Referer");

Nope, that's not what I want. I need this as I want to make a link to reload
page changing the language. So I want the url of the page I'm seeing. This
could be a .jsp and that is not a problem, but in case of a .do I would like
to have the .do url not the resultant .jsp url.
As I'm keeping the request I don't see why I can't have the original url...

mario
-- 
View this message in context: 
http://www.nabble.com/Find-out-the-old-url-after-struts-forwarding-tf2042007.html#a5622597
Sent from the Struts - User forum at Nabble.com.


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



Find out the old url after struts forwarding

2006-08-02 Thread Wbyeats

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?
Is there any way?

Thanks a lot in advance!!

mario

-- 
View this message in context: 
http://www.nabble.com/Find-out-the-old-url-after-struts-forwarding-tf2042007.html#a5621340
Sent from the Struts - User forum at Nabble.com.


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