This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
As we know that Headers and cookies set by a page are not visible in forwarded and included pages. Then how we can maintain the state in such type of situations
posted 11 years ago
If you're submiting to a servlet that then redirects the request using a forward or an include, you can create session variables in the included servlets or you can create attributes using .setAttribute() method that can later on be retrieved from an HttpSesssion object on your final destination's page.