Re: How to set header (directly) before response is committed

2009-08-31 Thread Martin Grotzke
On Mon, 2009-08-31 at 10:33 -0400, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > On 8/30/2009 4:51 PM, Martin Grotzke wrote: > > On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: > > > >> Doing this kind of thing is always a risky propos

Re: How to set header (directly) before response is committed

2009-08-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 8/30/2009 4:51 PM, Martin Grotzke wrote: > On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: > >> Doing this kind of thing is always a risky proposition, since there are >> lots of cases to test. > > Hmm, which cases do you hav

Re: How to set header (directly) before response is committed

2009-08-31 Thread Martin Grotzke
On Mon, 2009-08-31 at 13:36 +0200, Martin Grotzke wrote: > http://github.com/magro/memcached-session-manager/blob/de2f6d6749226c685eef38b985411c00b11fe452/src/main/java/de/javakaffee/web/msm/CommitInterceptingActionHook.java > http://github.com/magro/memcached-session-manager/blob/de2f6d6749226c685

Re: How to set header (directly) before response is committed

2009-08-31 Thread Martin Grotzke
http://github.com/magro/memcached-session-manager/blob/de2f6d6749226c685eef38b985411c00b11fe452/src/main/java/de/javakaffee/web/msm/CommitInterceptingActionHook.java http://github.com/magro/memcached-session-manager/blob/de2f6d6749226c685eef38b985411c00b11fe452/src/main/java/de/javakaffee/web/msm/

Re: How to set header (directly) before response is committed

2009-08-30 Thread Bill Barker
"Martin Grotzke" wrote in message news:1251665502.4485.70.ca...@localhost.localdomain.tld... >On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 > > > >Martin, > > >> On 8/30/2009 1:50 PM, Martin Grotzke wrote: > >> I found the Acti

Re: How to set header (directly) before response is committed

2009-08-30 Thread Martin Grotzke
On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > On 8/30/2009 1:50 PM, Martin Grotzke wrote: > > I found the ActionHook within the coyote response, so I'd try to wrap > > this and intercept the action with ActionCode.A

Re: How to set header (directly) before response is committed

2009-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 8/30/2009 1:50 PM, Martin Grotzke wrote: > I found the ActionHook within the coyote response, so I'd try to wrap > this and intercept the action with ActionCode.ACTION_COMMIT. > > Is this the correct approach for solving this problem? Sou

How to set header (directly) before response is committed

2009-08-30 Thread Martin Grotzke
Hi, I want to set a cookie as late as possible from within a valve. So that the Set-Cookie header is set on the response and sent to the client the response must not be committed, so setting the cookie directly before the response is committed would be ideal from my point of view. I found the Act