ginal Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Wed, 27 May 2009 3:29 pm
Subject: Re: Interceptor Trouble
On Wed, May 27, 2009 at 3:24 PM, Jim Collings wrote:
>
> Conventions. Hmmm.. Perhaps better implemented as a filter then. I'ld
> prefer it to havin
On Wed, May 27, 2009 at 3:24 PM, Jim Collings wrote:
>
> Conventions. Hmmm.. Perhaps better implemented as a filter then. I'ld
> prefer it to having to annotate every single Action class.
>
>
> Jim C.
>
You don't need to annotate every class, but you will need to change
the package the conventio
On Wed, May 27, 2009 at 3:17 PM, Wes Wannemacher wrote:
> Wait, wait... Actions package? Are you using codebehind or
> conventions? If so, then the struts.xml file you posted won't be
> enough. You have to either change the default convention package or
> you have to use InterceptorRef annotations
Wait, wait... Actions package? Are you using codebehind or
conventions? If so, then the struts.xml file you posted won't be
enough. You have to either change the default convention package or
you have to use InterceptorRef annotations on your action. By default,
the conventions plugin uses somethin
> Do you have any actions in that package? Your interceptor should be
> run, but only against actions in that package (xxx). Also, your
> interceptor is last in your stack, so things like validation failure
> can keep it from firing.
>
> -Wes
Yes. Tried putting it in the Actions package. No dice.
à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Wed, 27 May 2009 12:47:48 -0400
&
On Wed, May 27, 2009 at 8:18 AM, Jim Collings wrote:
[snip]
>
> Here is the relevant portion of the xml:
>
>
>
> class="com.eds.xxx.web.admin.UidInterceptor"/>
>
>
>
>
>
>
>
>
> Clues anyone? I can se
So, I've edited the struts.xml appropriately and I've created an
Interceptor that implements the interceptor interface. Init() is
called on startup but I can't get it to call intercept() to save my
life. My objective is to create an interceptor that checks to see if a
session variable is set and if
8 matches
Mail list logo