This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes Session problem between JSP and Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Session problem between JSP and Struts" Watch "Session problem between JSP and Struts" New topic
Author

Session problem between JSP and Struts

kashif Shabbir
Greenhorn

Joined: Aug 27, 2004
Posts: 2
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

Joined: Aug 15, 2004
Posts: 2874
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

Joined: Aug 27, 2004
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

Are your two parts configured as separate contexts?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session problem between JSP and Struts