<%@ page import="java.util.*" %> <%-- either do imports here, or you can fully qualify classes each time you use them --%> <%! int countTimesRunSinceReloaded = 0; %> <%-- declaration statement, only executed when jsp is loaded --%> <% String title = "More Fun with JSPs"; %> <%-- a scriptlet, the bulk of your JSP Java code codes in these, uses regular java syntax --%> <%= title %> <%-- an expression, always resolves to a String, note the missing semicolon --%> This page has been run <%= ++countTimesRunSinceReloaded %> times since it was last loaded.