and for the second case..hehe he..(joking) you wont get..why? think guy..you set header for output (response) which goes back to the client(in generic). request is from client. request is got from client..and response is sent to client. you cannot mix both. hope this is clear.
Right you are!... . Using cookies related methods is the way to communicate.
Forwarding and redirecting just uses the existing request/response object. The only thing that can be done for getting modified headers is to use a wrapper over the existing HttpServletRequest object and overriding the getHeader() method.
That is unless we are using an interceptor and modifying the headers. [ September 01, 2006: Message edited by: Shivani Chandna ]
Joined: Mar 27, 2006
Just a small modification ..
Forwarding will use the same request/response object but redirecting creates a fresh set of request / response objects