Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Session problem between JSP and Struts

 
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.
 
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?
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are your two parts configured as separate contexts?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic