This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
I have two jsp and one servlet. If I set a session variable in one jsp and redirect to another JSP page I am able to view the session variable in the redirected JSP page. But if I redirect from one JSP to the other JSP using a servlet and set a session variable in the servlet I am not able to view the variable in the redirected JSP page the session variable becomes null.
I use response.sendRediect(); to redirect from the servlet to JSP.
The configaration that I use is
Tomcat - 5.0.30 Operating System - Linux FreeBSD Servlet - 2.4 JSP - 2.0 Java - 1.4.2-p7