tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <>
Subject How to set header (directly) before response is committed
Date Sun, 30 Aug 2009 17:50:22 GMT

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 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? Any other
thoughts on this?


View raw message