| 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: 56202
|
|
|
Are your two parts configured as separate contexts?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Session problem between JSP and Struts
|
|
|