<%@ page language="java"contentType="text/html" pageEncoding="utf-8"%> <!DOCTYPEhtml PUBLIC "-//W3C//DTDHTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <metahttp-equiv="Content-Type"content="text/html; charset=utf-8"> <title>Insert title here</title> </head> <body> <jsp:useBeanid="count" scope="application"class="com.jsp.Counter"/> <h1>当前页面访问次数:</h1> <jsp:getPropertyname="count" property="count"/> </body> </html>