You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Daniel Amadei <da...@gmail.com> on 2007/02/07 23:45:00 UTC
global forward in struts 2
Hi All,
Is there a way to set up a global forward in Struts 2 and set it to
forward to a tiles def?
Thanks,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: global forward in struts 2
Posted by Dave Newton <ne...@yahoo.com>.
--- Daniel Amadei wrote:
> Unfortunately, this does not do what I want.
>
> I need to type an action in the URL and get
> redirected to the result without having to code the
> Action.
Ah. Then you don't want a "global forwards", you want
wildcard action mappings, from
http://cwiki.apache.org/WW/action-configuration.html:
<action name="*" >
<result>/{1}.jsp</result>
</action>
Or, in your case (and mine) you define it as a tiles
result.
d.
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: global forward in struts 2
Posted by Daniel Amadei <da...@gmail.com>.
Hi Dave,
Unfortunately, this does not do what I want.
I need to type an action in the URL and get redirected to the result
without having to code the Action.
Thanks,
Daniel
2007/2/7, Dave Newton <ne...@yahoo.com>:
> --- Daniel Amadei wrote:
> > Is there a way to set up a global forward in Struts
> > 2 and set it to forward to a tiles def?
>
> You can create global-results with any result type you
> want.
>
> http://cwiki.apache.org/WW/result-configuration.html
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
>
> ---------------------------------------------------------------------
> 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
Re: global forward in struts 2
Posted by Dave Newton <ne...@yahoo.com>.
--- Daniel Amadei wrote:
> Is there a way to set up a global forward in Struts
> 2 and set it to forward to a tiles def?
You can create global-results with any result type you
want.
http://cwiki.apache.org/WW/result-configuration.html
d.
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org