tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ravi shankar" <ravish_7...@rediffmail.com>
Subject Re: newbie: problem with local and static variable
Date Mon, 03 Sep 2001 12:36:21 GMT
hi henri,
i maybe wrong ,but have u declared the counter as static
it should not be declared as a class variable

ravi

On Mon, 03 Sep 2001 henri charme wrote :
>hi everybody,
>i am currently trying o'reilly example of a counter 
>with a
>static variable and a local one to count access
>unfortunately their behaviour is the same
>so every access to my servlet is on the same instance 
>of the
>class
>what is wrong in my configuration? i can't find the 
>solution
>in the doc and in archives
>i know it must be silly but...
>
>thank you for helping me
>________________________________________________________-
>_
>Le journal des abonnÚs Caramail - 
>http://www.carazine.com
>


 




Mime
View raw message