Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP and Session Management Question

843833Sep 26 2001 — edited Oct 7 2001
I 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???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2001
Added on Sep 26 2001
12 comments
686 views