struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tejas Bavishi" <>
Subject RE: session lost between JSP and Struts
Date Fri, 04 Aug 2006 06:50:03 GMT
Could you try to encode your link URL to struts using the encodeURL method
of the http response object. The encodeURL method will encode the URL with
session id if cookies are disabled.
See if this works.


-----Original Message-----
From: Jin Chen []
Sent: Friday, August 04, 2006 3:19 AM
Subject: session lost between JSP and Struts

I have a login.jsp page and it directs to welcome.jsp page. Inside
welcome.jsp page, it has one link to call struts action and another link to
call another jsp. All jsp and struts are running within the same browser.
However, I debug and find struts one always creates a new session, because I
print out its session id and the id is different from the one in
The jsp one still keeps the same session (session id). Weird to me. I am
using tomcat 5.5.17.

Any idea about where I should check?

Many thanks!
World-Wide Partnerships. World-Class Solutions.

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at and delete this mail. 

View raw message