On Wed, Oct 13, 2010 at 12:44 AM, Li Ying wrote:

> But, in some case, the data loading logic need to access the
> parameters value to know what data should be loaded.
> And, unfortunately, the interceptor [prepare] is configured
> before interceptor [params] in the default interceptor stack.
>
> see: [defaultStack] in this page:
>
> http://struts.apache.org/2.2.1/docs/interceptors.html#Interceptors-TheDefaultConfiguration


I'm aware of the default configuration.

There are two options: use the existing prepareParamsPrepare stack, which
you'll find if you read the entirety of the page you've linked to, or define
your own interceptor stack that implements the functionality your
application requires.

I think this is inconvenient for me.
>

This is why (a) the other interceptor stack comes pre-defined, and (b) a
trivial way of implementing custom functionality is provided.

Dave

Reply via email to