struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject Re: Find out the old url after struts forwarding
Date Wed, 02 Aug 2006 22:42:09 GMT
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/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

Monkeyden wrote:
> 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 <mario@emmedici.com> wrote:
>>
>>
>> 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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message