You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by GF <ga...@gmail.com> on 2008/03/10 15:27:36 UTC
[S2] Mapping a result string for all the actions
I've an action like this:
<action name="myAction" class="myClass" method="myMethod">
...
<result name="myResultName" type="redirect">/path/my.action</result>
</action>
I would like that, when any action method in my application returns
"myResultName", a redirect to /path/my.action should be executed.
Any idea about doing this?
Thanks
Re: [S2] Mapping a result string for all the actions
Posted by st...@gmail.com.
Isn't it great when you can exactly what you need with exactly one message
for exactly $0.0? Priceless!
On Mon, Mar 10, 2008 at 10:00 AM, GF <ga...@gmail.com> wrote:
> Thank you
> It's exactly what I was looking for!
>
> On Mon, Mar 10, 2008 at 3:34 PM, Lukasz Lenart <
> lukasz.lenart@googlemail.com>
> wrote:
>
> > Hi,
> >
> > You can use global-results
> > http://struts.apache.org/2.0.6/docs/result-configuration.html
> >
>
--
Scott
stanlick@gmail.com
Re: [S2] Mapping a result string for all the actions
Posted by GF <ga...@gmail.com>.
Thank you
It's exactly what I was looking for!
On Mon, Mar 10, 2008 at 3:34 PM, Lukasz Lenart <lu...@googlemail.com>
wrote:
> Hi,
>
> You can use global-results
> http://struts.apache.org/2.0.6/docs/result-configuration.html
>
Re: [S2] Mapping a result string for all the actions
Posted by Lukasz Lenart <lu...@googlemail.com>.
Hi,
You can use global-results
http://struts.apache.org/2.0.6/docs/result-configuration.html
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org