You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dale Newfield <Da...@Newfield.org> on 2008/02/13 18:22:06 UTC

Re: [struts] about paramsPrepareParamsStack

GF wrote:
> do you think is there any issue adding <interceptor-ref
> name="staticParams"/> also before the first <interceptor-ref
> name="params"/> in this way:

>                 <interceptor-ref name="staticParams"/>
>                 <interceptor-ref name="params"/>
...
>                 <interceptor-ref name="prepare"/>
...
>                 <interceptor-ref name="staticParams"/>
>                 <interceptor-ref name="params"/>

Almost.  Really it should be the other way around, since you don't want 
user-set parameters to override your static parameters.

And for 2.1.1 you also need: "actionMappingParams"


Which means it should really be:

<interceptor-ref name="params"/>
<interceptor-ref name="actionMappingParams"/>
<interceptor-ref name="staticParams"/>
...
<interceptor-ref name="prepare"/>
...
<interceptor-ref name="params"/>
<interceptor-ref name="actionMappingParams"/>
<interceptor-ref name="staticParams"/>

-Dale

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


Re: [struts] about paramsPrepareParamsStack

Posted by GF <ga...@gmail.com>.
>  Almost.  Really it should be the other way around, since you don't want
>  user-set parameters to override your static parameters.

I agree with you.
Thanks

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