tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henri charme <henri.cha...@caramail.com>
Subject Re: newbie: problem with local and static variable
Date Mon, 03 Sep 2001 14:49:57 GMT
the code is:

public class MyServlet extends HttpServlet
{
 int count = 0; // should be separated for each instance
 static int classcount = 0; 

 public void doGet(HttpServletRequest request,
HttpServletResponse response)
 throws IOException, ServletException
 {
 this.count++;
 classcount++;
 ...
 }

 ...
}

but i don't think that the problem is here
i guess it's the configuration... no?


> -------Message d'origine-------
> De : "ravi shankar" <ravish_7928@rediffmail.com>
> Date : 03/09/2001 13:37:19
> 
> 
> 
> ---- Attachement - noname029935 ----
> 
> 
______________________________________________________
BoƮte aux lettres - Caramail - http://www.caramail.com


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message