Re: setHeader after DoFilter delegation in filter?

2008-10-16 Thread slioch
] Subject: Re: setHeader after DoFilter delegation in filter? To create output for the client, the application calls something, right? (I mean a method of HttpRequest). Not quite - you're confusing request with response. There are methods in HttpServletResponse - an Interface, not a class

Re: setHeader after DoFilter delegation in filter?

2008-10-11 Thread Pid
() are not being called how would response be sent (provided autoflush is false and the buffer size is large enough for the print writer). Thanks for the help (and patience)! mike Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: setHeader after DoFilter

Re: setHeader after DoFilter delegation in filter?

2008-10-11 Thread André Warnier
: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: setHeader after DoFilter delegation in filter? To create output for the client, the application calls something, right? (I mean a method of HttpRequest). Not quite - you're confusing request with response. There are methods

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread André Warnier
slioch wrote: [...] I'll risk an explanation here.. I think maybe the issue is a misunderstanding of how a servlet filter works. It took me a while too, but I think I've got it in the end. Sorry if this is level 101, that's my own level. What was confusing to me at first, is that this is

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread Pid
André Warnier wrote: slioch wrote: [...] I'll risk an explanation here.. I think maybe the issue is a misunderstanding of how a servlet filter works. It took me a while too, but I think I've got it in the end. Sorry if this is level 101, that's my own level. What was confusing to me at

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread slioch
/setHeader-after-DoFilter-delegation-in-filter--tp19862960p19925786.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread André Warnier
slioch wrote: Thanks much for the responses. I understand. It makes sense to use HttpServletRequestWrapper, but there are no methods in HttpServletRequestWrapper or HttpServletRequest that initiates the sending of the response back to the client. So, by subclassing HttpServletRequest there

RE: setHeader after DoFilter delegation in filter?

2008-10-10 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: setHeader after DoFilter delegation in filter? To create output for the client, the application calls something, right? (I mean a method of HttpRequest). Not quite - you're confusing request with response. There are methods

RE: setHeader after DoFilter delegation in filter?

2008-10-10 Thread slioch
for the help (and patience)! mike Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: setHeader after DoFilter delegation in filter? To create output for the client, the application calls something, right? (I mean a method of HttpRequest). Not quite

Re: setHeader after DoFilter delegation in filter?

2008-10-09 Thread slioch
PROTECTED] -- View this message in context: http://www.nabble.com/setHeader-after-DoFilter-delegation-in-filter--tp19862960p19912296.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new

Re: setHeader after DoFilter delegation in filter?

2008-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael Larson wrote: I'm debugging a tomcat filter. The filter has been designed as follows: MyFilter::DoFilter(ServletRequest request, ServletResponse response, FilterChain chain) { do_some_stuff(); //now delegate the call