Yes, at first I thought that I was supposed to pass the "includes" param
into the "chain" result like this:

<action name="someAction" class="com.examples.SomeAction">
       <interceptor-ref name="basicStack"/>
        <result name="success" type="chain">
            <param name="actionName">otherAction</param>
            <param name="includes">prop1</param>
        </result>
</action>
<action name="otherAction" class="com.examples.OtherAction" >
        <interceptor-ref name="chain" />
        <interceptor-ref name="basicStack"/>
        <result name="success">/result.jsp</result>
</action>

But it doesn't work.

I've tried this too and no success (actually it doesn't make sense at all,
so it's good that it does not work.. lol):

<action name="someAction" class="com.examples.SomeAction">
        <interceptor-ref name="basicStack">
            <param name="includes">prop1</param>
        </interceptor-ref>
        <result name="success" type="chain">
            <param name="actionName">otherAction</param>
        </result>
</action>
<action name="otherAction" class="com.examples.OtherAction" >
        <interceptor-ref name="chain" />
        <interceptor-ref name="basicStack"/>
        <result name="success">/result.jsp</result>
</action>

And last:

<action name="someAction" class="com.examples.SomeAction">
        <interceptor-ref name="chain" >
            <param name="includes">prop1</param>
        </interceptor-ref>
        <interceptor-ref name="basicStack"/>
        <result name="success" type="chain">
            <param name="actionName">otherAction</param>
        </result>
</action>
<action name="otherAction" class="com.examples.OtherAction" >
        <result name="success">/result.jsp</result>
</action>

All in vain. :(
They all copy all the parameters. I want to pass just a few parameters from
SomeAction into OtherAction.

On Thu, Jan 8, 2015 at 4:43 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2015-01-07 20:46 GMT+01:00 Tenchi Masaki <koouy...@gmail.com>:
> > Hi Lukasz,
> >
> > I've tried setting up a new project just to test the chained action and
> now
> > I'm a bit confused. It's exactly the same configuration on struts.xml:
> >
> > <action name="someAction" class="com.examples.SomeAction">
> >     <interceptor-ref name="basicStack"/>
>
> Can you move the props config here? As you want pass only few props of
> someAction to the otherAction, right?
>
> >     <result name="success" type="chain">otherAction</result>
> > </action>
> > <action name="otherAction" class="com.examples.OtherAction">
> >     <interceptor-ref name="chain">
> >         <param name="includes">prop1,prop2,prop3</param>
>
> This param doesn't make sense here as you don't use "chain" result here
>
> >     </interceptor-ref>
> >     <interceptor-ref name="basicStack"/>
> >     <result name="success">good_result.ftl</result>
> > </action>
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to