Re: Find out the old url after struts forwarding

2006-08-02 Thread Frank W. Zammetti
It's already there, as a request attribute, under the key "org.apache.struts.action.mapping.instance", or more precisely, under the key named by the value of Globals.MAPPING_KEY. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yah

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
Pass it to the JSP from the action in the request object? action form? session? Pick your poison. request.setAttribute("URL", mapping.getPath() + "?language=swahili"); On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: But how would I use a mapping.getPath() inside a jsp? mario -- View this

Re: Find out the old url after struts forwarding

2006-08-02 Thread Michael Jouravlev
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

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.

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
mapping.getPath() On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: > 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 p

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 seein

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
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"); 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 s