Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session problem between JSP and Struts

 
kashif Shabbir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Web application is in 2 parts,1 is developed using JSP and the other is developed using Struts. When i move from a normal JSP page to a Struts page the HTTP session changes i.e. there are 2 HTTPSessions working side by side 1 for JSP and 1 for struts. I dont know what i'm doing wrong. I need the same session for both of them.
Thanx in advance.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you are a bit confused isn't it, or may be i got you wrong.

wht i can suggest you is read some more on sturts framework. and configure your whole application to use sturts. dont understand how can you get two sessions side by side? and wht are you gettin from getSessionId()?
 
kashif Shabbir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting 2 diffrent Ids from session.getId(). the userinfo set in the session is also no present in the 2nd session(the struts session). i know i'm doing some thing wrong but where and wht?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64856
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are your two parts configured as separate contexts?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic