<%@ page contentType="text/html;charset=Shift_JIS" %> カウント

カウント

<%! int count = 0; %> <% int localcount = 0; count++; localcount++; %>

スクリプトレット内のカウントは<%= localcount %>です。

変数宣言で作成したカウントは<%= count %>です。