JSP and Session Management Question
843833Sep 26 2001 — edited Oct 7 2001I am having a problem with session management in a JSP. Here is the background.
I start with an HTML page that has a form which posts to a servlet (a). Servlet (a) sets up a session and stores some values.
Sometimes servlet (a) needs to redirect to a JSP. The JSP also includes a form which posts to a second servlet (b).
When I get into the second servlet I am finding that I can't retrieve the information I placed in the session in the first servlet (a).
I believe what has happened is that when the JSP was launched it added/created a second session. Then when I attempt to retrieve the value from the session in the second servlet (b)... the value I want isn't in it (because it is looking at the second session value).
Any idea's on how to stop the JSP from creating the second session???