This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New session created when submitting to a action class from JSP

 
Vani Sreedharan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't a Struts question, but a general application server issue--you might be better off in the "servlets" forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic