You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ravi shankar <ra...@rediffmail.com> on 2001/09/03 14:36:21 UTC

Re: newbie: problem with local and static variable

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
>