Re: Interceptor Trouble

2009-05-27 Thread musomesa
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

Re: Interceptor Trouble

2009-05-27 Thread Wes Wannemacher
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

Re: Interceptor Trouble

2009-05-27 Thread Jim Collings
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

Re: Interceptor Trouble

2009-05-27 Thread Wes Wannemacher
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

Re: Interceptor Trouble

2009-05-27 Thread Jim Collings
> 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.

RE: Interceptor Trouble

2009-05-27 Thread Martin Gainty
à 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 &

Re: Interceptor Trouble

2009-05-27 Thread Wes Wannemacher
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

Interceptor Trouble

2009-05-27 Thread Jim Collings
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