<% @ page language="Java" pageEncoding="utf-8" % & gt;
<body>
<%! CountA//JSP declaration: declare an integer, and initialized to 0
Int countA=1; %>
<%
//Java scriptlets script, declare an integer countB and should be initialized to 0
Int countB=0;
%>
<%="countA=" + + + countA % & gt;
<%="countB=" + + + countB % & gt;