You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jin Chen <ji...@gmail.com> on 2006/08/03 23:49:18 UTC

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!

Re: session lost between JSP and Struts

Posted by Danilo Marchiori <da...@gmail.com>.
check the cookies permission on your browser.. and try in other browser,
just to be shure.

On 8/3/06, Jin Chen <ji...@gmail.com> 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
╙───╨───────╨──────────────╜

RE: session lost between JSP and Struts

Posted by Tejas Bavishi <te...@patni.com>.
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:jinchen.mailinglist@gmail.com]
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 netadmin@patni.com and delete this mail. 
_____________________________________________________________________