This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56202
    
  13

Are your two parts configured as separate contexts?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Session problem between JSP and Struts
 
Similar Threads
Obtaining client user id in Tomcat via Http
Image not getting displayed
Session tracking with model 1
Jsp in Struts
Struts 2.0 Display tag implementation