struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Van Wart <sc...@indosoft.com>
Subject Re: Forwards between webapps
Date Thu, 17 Aug 2006 00:46:25 GMT
Saeed, Rada wrote:
> Forwards between webapps are not supported, cuz both have different
> contexts, this's what I got from running this :
> <forward name="portal" path="/portal/main.do" redirect="true"
> contextRelative="false" />
> Is there any other way to achieve this forward between different web
> applications ?
>   
I think the class 'org.apache.struts.actions.SwitchAction' might do the 
trick (struts-config.xml):

  <action path="/toModule" type="org.apache.struts.actions.SwitchAction" />

And then in your JSP:

  <html:link page="/toModule.do?prefix=portal&page=/main.do">To 
Portal</html:link>

- Scott

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


Mime
View raw message