tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ravi shankar" <>
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


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
>what is wrong in my configuration? i can't find the 
>in the doc and in archives
>i know it must be silly but...
>thank you for helping me
>Le journal des abonnÚs Caramail - 


View raw message