struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <paul4chris...@yahoo.com>
Subject Re: forwardPattern and Action Relaying
Date Sun, 13 Nov 2005 20:02:57 GMT
There is a module attribute to the forward tag. From the DTD: "The module prefix to use with
this
path. This value should begin with a slash ("/")."


--- alec lee <alec_lee@hotmail.com> wrote:

> I am using modules and placing my JSPs under /WEB-INF.  My understanding is 
> that struts support this configuration by using <controller 
> forwardPattern="/WEB-INF$M$P" > in my struts-config-module.xml to map 
> forward path to the proper module relative URL.
> 
> However, what if now I want to relay from one action to another using the 
> forward path e.g.
> 
> <action path="/actionA"...
>   <forward name='...' path="/actionB.do"/>
> </action>
> 
> <action path="/actionB"...>
> ..
> </action>
> 
> The 'path=/actionB' will be replaced by the '/WEB-INF/module/actionB.do' 
> string due to the forwardPattern string.  If I use contextRelative="true" 
> e.g.
> 
>   <forward name='...' path="/actionB.do" contextRelative="true"/>
> 
> The path will be relative to the application rather than the current module. 
>   What I really need is a way to specify /module/actionB.do.  Can it be 
> done?  Or, what should be the best practice when using modules with JSP 
> placed under WEB-INF?
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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


Mime
View raw message