This declares an instance variable 'i' in the generated servlet. This variable is common to all requests that hit this servlet and hence the page count is increased.
This declares a variable 'i' inside _jspService method that is run in a separate
Thread for every request. So this variable is initialized to 1 for every request and printed as 1.
Please note variables declared inside <%! .. %> are not thread-safe.
[ October 04, 2005: Message edited by: Sravan Kumar ]