<%@ page language="java" contentType="text/html" %>
<%!
int globalCounter = 0;
%>
A page with a counter
This page has been visited: <%= ++globalCounter %> times.
<%
int localCounter = 0;
%>
This counter never increases its value: <%= ++localCounter %>