Something strange happens with Tomcat. It ignores session atributes.
When it starts to accept them then it hungs up after a while. It happens
to standalone version, as well as in isapi version. 

i.e. this example:
<% 
  String count = (String)session.getAttribute("numVisits");
  count = increment(count); 
  out.print("I am here  for the " + count + " time.");
  session.setAttribute("numVisits", count); 
%>

<%!
  String increment(String count) {
    if (count != null)
      return Integer.toString(Integer.parseInt(count) + 1);
    else
      return "1";
  }
%>

Tomcat keeps showing number 1. When it eventually starts incrementing
numVisits, hangs-up.

Session timeout is set in web.xml to 30 minutes.
Strange is, that same apps (I mean from the same physical location)
launched from other JSP container (i.e. ServletExec) work fine. So I
think the problem is not in apps but in Tomcat.

Any ideas why? Thanks in advance. 
Bogdan


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

Reply via email to