由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - session lost between JSP and Struts
相关主题
J2EE和未来工作问题[转载] JSP access database的问题
关于Jsp timeout请问JSP里这个怎么设
JSP菜鸟一问问一个J2EE和Tomcat问题
One more servlet Q: Http SessionQuestion on JSP EL
Re: 一个最近完成的JAVA项目的反思。question about using Runtime.getRuntime.exec() in Tomcat
Java Http Question?tomcat 快要把我逼疯了, 高手帮忙。
问个J2EE server跟Apache Web Server的问题?Tomcat JSP syntax error
JSP and TOMCAT 问题please recommend a good Java Hosting service
相关话题的讨论汇总
话题: jsp话题: struts话题: session话题: page话题: another
进入Java版参与讨论
1 (共1页)
j***c
发帖数: 2
1
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 chec
g*****g
发帖数: 34805
2
check api HttpRequest.getSession() and getSession(boolean),
also make sure the session expire period in web.xml is not too short.

jsp
another
.
using

【在 j***c 的大作中提到】
: 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 chec

m******t
发帖数: 2416
3

jsp
another
Are they running in the same _web application_ is the question. Also can you
post how you form the link to call the struts action in welcome.jsp?

【在 j***c 的大作中提到】
: 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 chec

1 (共1页)
进入Java版参与讨论
相关主题
please recommend a good Java Hosting serviceRe: 一个最近完成的JAVA项目的反思。
新手求助 ARR里添加Tomcat的问题 (转载)Java Http Question?
菜鸟请教版上大虾--如何用Java建一个连接Dababase的Tomcat网页问个J2EE server跟Apache Web Server的问题?
各位大神帮看看[有包子]JSP and TOMCAT 问题
J2EE和未来工作问题[转载] JSP access database的问题
关于Jsp timeout请问JSP里这个怎么设
JSP菜鸟一问问一个J2EE和Tomcat问题
One more servlet Q: Http SessionQuestion on JSP EL
相关话题的讨论汇总
话题: jsp话题: struts话题: session话题: page话题: another