Re: paramsPrepareParams vs. staticParams

2008-08-03 Thread Gabriel Belingueres
>From a design POV, there are differences between params and staticParams interceptor: AFAIK, the parameter interceptor is called twice because it serves this design purpose: to allow your action to execute some logic which is dependent of *some* of the current parameter values to set up the model

RE: paramsPrepareParams vs. staticParams

2008-08-03 Thread Andy Law
mgainty wrote: > > > Andy- > the short answer is you don't want > user-set parameters to override your static parameters. > > Well yes - but I need the parameters for doing some prepare() work. I can see that staticParams fires after params in the default stack. I can also see that params i

Re: paramsPrepareParams vs. staticParams

2008-08-03 Thread Musachy Barroso
You can configure the params interceptor to ignore some parameters, passing regular expressions to the excludeParams attribute. http://struts.apache.org/2.x/docs/parameters-interceptor.html musachy On Fri, Aug 1, 2008 at 12:53 PM, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > staticParams prov

RE: paramsPrepareParams vs. staticParams

2008-08-03 Thread Martin Gainty
Andy- the short answer is you don't want user-set parameters to override your static parameters. btw for 2.1.1 you also need: "actionMappingParams" Which means your stack should be: ... ... ... (courtesy of dale) http://www.nabble.com/about-paramsPrepareParamsStack-t

Re: paramsPrepareParams vs. staticParams

2008-08-01 Thread Gabriel Belingueres
staticParams provide some sort of default parameter injection when you declare an action in your struts.xml, but it should be ok to override this value if it came as a parameter. If the interceptor order would be the opposite, then static parameters would take precedence over regular parameters. A