Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Action without interceptors

Tom Schneider

2007-01-09

Replies:

Don's solution is good if you don't want any of your actions to have
interceptors. My solution was for the cases where most of the actions use
the default stack and only a handful of actions shouldn't have any
interceptors. Which brings up a more interesting question: Can you have an
empty interceptor stack? (Not sure if the dtd allows that) That would be a
better solution than a NullInterceptor. I've never run into a sitiuation
where I have absolutely no interceptors, so maybe its not that relevant.
Tom

On 1/9/07, Don Brown <donald.brown@(protected):
>
> If you don't want any interceptors, don't have your package extend
> "struts-default". There isn't some magical built-in interceptor used
> for user packages.
>
> Don
>
> On 1/9/07, Juan Espinosa <pcexplorer@(protected):
> >
> >
> > 1) Because the url has a parameter called validationCode and i dont have
> a
> > property in my class with that name.....
> > 2) Because i want interceptors run when "I WANT" not when struts want...
> >
> > May be i must write an interceptor that do nothing and put that
> interceptor
> > in the action
> >
> >
> > -----Mensaje original-----
> > De: Dave Newton [mailto:DNewton@(protected)]
> > Enviado el: martes, 09 de enero de 2007 13:45
> > Para: Struts Users Mailing List
> > Asunto: RE: Action without interceptors
> >
> > From: Juan Espinosa [mailto:pcexplorer@(protected)]
> > > The seconda action is an action that validate a code passed
> > > http://www.mysite.com/test2?validationCode=3
> > > I need no intercepto neither parameters interceptor nor model driven
> > > interceptor...
> >
> > Just because you don't *need* one doesn't mean it matters if they're
> there.
> >
> > Why do you explicitly *not* want the interceptors?
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date:
> 08/01/2007
> > 16:12
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date:
> 08/01/2007
> > 16:12
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.