--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Is there a way to have one interceptor stack defined in terms of
> another? I created a log-in interceptor to check if a user is logged in
> and redirect him/her to the log-in page if not, and it will be applied
> to almost all pages, but there will be a few (index, etc.) that would
> not need that. However, most other pages use the same basic
> interceptors, just not the log-in one. So, given the below, is there a
> way to change it so that it's two stacks, one missing the log-in, and
> the other only declaring its parent and adding the log-in?
> 
>       <interceptor-stack name="defaultLoginStack">
>           <interceptor-ref name="params" />
>           <interceptor-ref name="login" />
>           <interceptor-ref name="prepare" />
>           <interceptor-ref name="fileUpload" />
>           <interceptor-ref name="conversionError" />
>           <interceptor-ref name="validation" />
>       </interceptor-stack>

Not if your added-in interceptor is in the middle of a stack, at least AFAIK.

If the added-in interceptor goes at the beginning or end of an existing stack
then just use the stack-being-extended as one of the interceptor-refs.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to