This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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