N
nobrentl
In Tomcat 5.5 using several minor releases under both Windows and Linux
I am using the "session" variable in .jsps as provided in Tomcat's
default configuration, then setting and getting attributes. I can see
with multiple sessions that each instance gets a different session id
by displaying the session id via out.println(session). However, they
seem to share same attribute scope as if I am accessing an application
scoped context. Hence, if one session sets an Attribute (eg.
session.setAttribute("msg","test1")), and then subsequently another
session gets that Attribute (eg. session.getAttribute("msg")), it gets
the other session's value (eg "test1") not the what it previously set
that attribute to.
Tomcat generates java as follows for the "session" variable as follows:
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request,
response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
What's up? Thanks.
I am using the "session" variable in .jsps as provided in Tomcat's
default configuration, then setting and getting attributes. I can see
with multiple sessions that each instance gets a different session id
by displaying the session id via out.println(session). However, they
seem to share same attribute scope as if I am accessing an application
scoped context. Hence, if one session sets an Attribute (eg.
session.setAttribute("msg","test1")), and then subsequently another
session gets that Attribute (eg. session.getAttribute("msg")), it gets
the other session's value (eg "test1") not the what it previously set
that attribute to.
Tomcat generates java as follows for the "session" variable as follows:
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request,
response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
What's up? Thanks.