i need to increment the value printed each time when i type this on broser
http://localhost:8080/test/ but it always gives 1.
why the count variable doesn't increment.
but it gives
The page var is now: null
why it gives null?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
Context init parameters are not the same thing as context attributes. In particular, context init parameters are immutable, so you can't use them for what you want to do (except for fetching an initial value with which to seed the attribute).
Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Rituraj Jain
Ranch Hand
Joined: Nov 28, 2008
Posts: 37
posted
0
buddy
may there is some other problem with your system but the value is increasing for me..i have copy pasted your program in my tomcat and while refreshing (internet explorer) the value is increasing as it should be.
and the variable declared in (Declaration Tag) <%! %> are same as to those which are declared at class level in case of servlets