Is there a way to determine what cookies or headers are being sent in a response? [I'm assuming the response was passed in from a request dispatcher or something... -Alex]

Alex Chaffee

Not with Servlet spec 2.2. The next version of the spec will allow you to pass in your own response object to the request dispatcher, which can intercept header and cookie setting calls, and record them for your later inspection.

See also http://www.jguru.com/jguru/faq/view.jsp?EID=213901