RE: session lost between JSP and Struts

2006-08-04 Thread Tejas Bavishi
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.

Thanks
Tejas


-Original Message-
From: Jin Chen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 04, 2006 3:19 AM
To: struts-user@jakarta.apache.org
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
welcome.jsp.
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!


http://www.patni.com
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 [EMAIL PROTECTED] and delete this mail. 
_

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: session lost between JSP and Struts

2006-08-03 Thread Danilo Marchiori

check the cookies permission on your browser.. and try in other browser,
just to be shure.

On 8/3/06, Jin Chen [EMAIL PROTECTED] wrote:


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
welcome.jsp.
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!





--

╔══╗
║  ÐANILO M RODRIGUES
╟──╢
║  System Analyst
╟──╢
║   VAI-Ingdesi Automation
║Belo Horizonte - MG
║(31) 3330-3537
║(31) 9107-9087
║(27) 8132-3202
╙───╨───╨──╜