Re: login interceptor and a servlet

2009-05-04 Thread Chris Pratt
nt facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > > > Date: Sun, 3 May 2009 21:20:47 -0700 > > Subject: Re: login interceptor and a servlet > > From: thechrispr...@gmail.com > >

RE: login interceptor and a servlet

2009-05-04 Thread Martin Gainty
ons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 3 May 2009 21:20:47 -0700 > Subject: Re: login interceptor and a servlet > From: thechrispr...@gmail.com > To: user@struts.apache.org > > Sure, you can either implement ServletResponseAware and write di

Re: login interceptor and a servlet

2009-05-03 Thread Chris Pratt
Sure, you can either implement ServletResponseAware and write directly to the stream, then return null from execute() to tell struts that there is no additional result required. Or, even better, you can use the Stream result type and let Struts write it to the stream for you. (*Chris*) On Sun,

Re: login interceptor and a servlet

2009-05-03 Thread Kate Fox
Hi Chris, Thanks for the quick response. Unfortunately my servlet is a true servlet. I need to write directly to the OutputStream. Is there a way to do that with an image action? Thanks, Kate Chris Pratt wrote: If your image servlet is a true servlet acting outside of struts, it won't b

Re: login interceptor and a servlet

2009-05-03 Thread Chris Pratt
If your image servlet is a true servlet acting outside of struts, it won't be subject to the interceptor stack. If it's actually an image action, just assign it a different interceptor stack that doesn't contain your LoginInterceptor and you'll be good to go. (*Chris*) On Sun, May 3, 2009 at 8:

login interceptor and a servlet

2009-05-03 Thread Kate Fox
I have a login interceptor to check login on all my pages. I also have a servlet that serves up images. The servlet does not go through the login interceptor. Is there a way to force it that way? Here is my login interceptor definition: