aspose file tools*
The moose likes Struts and the fly likes New session created when submitting to a action class from JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "New session created when submitting to a action class from JSP" Watch "New session created when submitting to a action class from JSP" New topic
Author

New session created when submitting to a action class from JSP

Vani Sreedharan
Greenhorn

Joined: May 11, 2006
Posts: 14
Hi,
I have a j2ee application which has a login servlet which creates a session and redirects to a JSP. This JSP submits to an action and when trying to read the session gives a new HTTP session object. New session is created for every action class submission basically for each request. I found with the help of a listener class and when the session ids in the servlet and action are different. I doubt this is because there is no session information in the cookie and thus the container creates a new session even before reading the session in the action class. But i'm not sure if this is the eroblem and the possible fix for this. Can anyone help me fixing this problem?

Thanks in advance,
Vani
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This isn't a Struts question, but a general application server issue--you might be better off in the "servlets" forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New session created when submitting to a action class from JSP
 
Similar Threads
Question on HttpSessionListener
Problem with session tracking
forward problem in JSP
Client session state not tracked
Loading of servlet ...