<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
Integer count = (Integer) application.getAttribute("count");
if (count == null) {
count = new Integer(0);
}
application.setAttribute("count", ++count);
out.print("您是第");
for (char ch : count.toString().toCharArray()) {
out.println("");
}
out.print("位访客");
%>
试试这个吧,要把数字的每一位输出出来才对。