You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by aum strut <au...@gmail.com> on 2010/10/12 18:17:13 UTC
Generic Question about Struts2 Interceptor
Hi All,
I have a generic question about Struts2Interceptor,since Struts2 is itself
in term of Interceptor and most of the required interceptors are there
placed.
My question is how many of us are using custom Interceptor which are there
in production enviornment.my idea is to get some broad prespective about
there usuage and practical implimentation in production
Thanks in advance,
Aum
Re: Generic Question about Struts2 Interceptor
Posted by Dave Newton <da...@gmail.com>.
I don't think I've deployed an app without at least one or two custom
interceptors.
On Tuesday, October 12, 2010, aum strut <au...@gmail.com> wrote:
> Hi All,
>
> I have a generic question about Struts2Interceptor,since Struts2 is itself
> in term of Interceptor and most of the required interceptors are there
> placed.
>
> My question is how many of us are using custom Interceptor which are there
> in production enviornment.my idea is to get some broad prespective about
> there usuage and practical implimentation in production
>
>
>
> Thanks in advance,
>
> Aum
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Generic Question about Struts2 Interceptor
Posted by aum strut <au...@gmail.com>.
That's really Helpful Greg
On Wed, Oct 13, 2010 at 12:21 AM, Greg Lindholm <gr...@gmail.com>wrote:
> Here are some that I've used in recent project:
>
> AuthenticationInterceptor to check if user is signed in.
> HibernateInterceptor to manage Hibernate session lifecycles
> LoggingInterceptor for custom logging
> HandsetPropertiesInterceptor for injecting properties into the request
> based on User-Agent settings
> TrimParametersInterceptor to trim whitespace off string parameters
> RedirectMessageInterceptor to handle preserving messages across redirects
> CookieMessageInterceptor to handle preserving message in cookies when
> not using sessions
>
> Interceptors are the place I will normally handle any cross-cutting
> concerns.
>
> On Tue, Oct 12, 2010 at 1:26 PM, aum strut <au...@gmail.com> wrote:
> > I am truely agree but can give me some example where you have applied
> them
> > just to get me an idea may be lacing imagination this time
> >
> > :)
> >
> > On Tue, Oct 12, 2010 at 10:40 PM, Greg Lindholm <greg.lindholm@gmail.com
> >wrote:
> >
> >> Every app I've written has custom interceptors (and of course custom
> >> interceptor stacks).
> >> Don't fear interceptors, they are your friends.
> >>
> >> On Tue, Oct 12, 2010 at 12:17 PM, aum strut <au...@gmail.com>
> wrote:
> >> > Hi All,
> >> >
> >> > I have a generic question about Struts2Interceptor,since Struts2 is
> >> itself
> >> > in term of Interceptor and most of the required interceptors are there
> >> > placed.
> >> >
> >> > My question is how many of us are using custom Interceptor which are
> >> there
> >> > in production enviornment.my idea is to get some broad prespective
> about
> >> > there usuage and practical implimentation in production
> >> >
> >> >
> >> >
> >> > Thanks in advance,
> >> >
> >> > Aum
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Generic Question about Struts2 Interceptor
Posted by Greg Lindholm <gr...@gmail.com>.
Here are some that I've used in recent project:
AuthenticationInterceptor to check if user is signed in.
HibernateInterceptor to manage Hibernate session lifecycles
LoggingInterceptor for custom logging
HandsetPropertiesInterceptor for injecting properties into the request
based on User-Agent settings
TrimParametersInterceptor to trim whitespace off string parameters
RedirectMessageInterceptor to handle preserving messages across redirects
CookieMessageInterceptor to handle preserving message in cookies when
not using sessions
Interceptors are the place I will normally handle any cross-cutting concerns.
On Tue, Oct 12, 2010 at 1:26 PM, aum strut <au...@gmail.com> wrote:
> I am truely agree but can give me some example where you have applied them
> just to get me an idea may be lacing imagination this time
>
> :)
>
> On Tue, Oct 12, 2010 at 10:40 PM, Greg Lindholm <gr...@gmail.com>wrote:
>
>> Every app I've written has custom interceptors (and of course custom
>> interceptor stacks).
>> Don't fear interceptors, they are your friends.
>>
>> On Tue, Oct 12, 2010 at 12:17 PM, aum strut <au...@gmail.com> wrote:
>> > Hi All,
>> >
>> > I have a generic question about Struts2Interceptor,since Struts2 is
>> itself
>> > in term of Interceptor and most of the required interceptors are there
>> > placed.
>> >
>> > My question is how many of us are using custom Interceptor which are
>> there
>> > in production enviornment.my idea is to get some broad prespective about
>> > there usuage and practical implimentation in production
>> >
>> >
>> >
>> > Thanks in advance,
>> >
>> > Aum
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Generic Question about Struts2 Interceptor
Posted by aum strut <au...@gmail.com>.
I am truely agree but can give me some example where you have applied them
just to get me an idea may be lacing imagination this time
:)
On Tue, Oct 12, 2010 at 10:40 PM, Greg Lindholm <gr...@gmail.com>wrote:
> Every app I've written has custom interceptors (and of course custom
> interceptor stacks).
> Don't fear interceptors, they are your friends.
>
> On Tue, Oct 12, 2010 at 12:17 PM, aum strut <au...@gmail.com> wrote:
> > Hi All,
> >
> > I have a generic question about Struts2Interceptor,since Struts2 is
> itself
> > in term of Interceptor and most of the required interceptors are there
> > placed.
> >
> > My question is how many of us are using custom Interceptor which are
> there
> > in production enviornment.my idea is to get some broad prespective about
> > there usuage and practical implimentation in production
> >
> >
> >
> > Thanks in advance,
> >
> > Aum
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Generic Question about Struts2 Interceptor
Posted by Greg Lindholm <gr...@gmail.com>.
Every app I've written has custom interceptors (and of course custom
interceptor stacks).
Don't fear interceptors, they are your friends.
On Tue, Oct 12, 2010 at 12:17 PM, aum strut <au...@gmail.com> wrote:
> Hi All,
>
> I have a generic question about Struts2Interceptor,since Struts2 is itself
> in term of Interceptor and most of the required interceptors are there
> placed.
>
> My question is how many of us are using custom Interceptor which are there
> in production enviornment.my idea is to get some broad prespective about
> there usuage and practical implimentation in production
>
>
>
> Thanks in advance,
>
> Aum
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org