使用JSP页面执行el表达式的方法
来源:互联网 发布:cf断网瞬移源码 编辑:程序博客网 时间:2024/05/16 17:16
<%...@page contentType="text/html; charset=GBK" isELIgnored="false"%>
<%...
if (application.getAttribute("count") == null) {
application.setAttribute("count", new Integer(0));
}
Integer count = (Integer) application.getAttribute("count");
application.setAttribute("count", new Integer(count.intValue() + 1));
%>
<html>
<head>
<title>页面被访问数统计</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
</head>
<body bgcolor="#ffffff">
<form action="RequestJsp.jsp">
<p></p>
<p></p>
<h1>
<input type="submit" name="sub" value="点击!"/>
</h1>
<!--输出访问次数 -->
<h1> 此页面已被访问了${applicationScope.count}次
</h1>
</form>
</body>
</html>
<%...
if (application.getAttribute("count") == null) {
application.setAttribute("count", new Integer(0));
}
Integer count = (Integer) application.getAttribute("count");
application.setAttribute("count", new Integer(count.intValue() + 1));
%>
<html>
<head>
<title>页面被访问数统计</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
</head>
<body bgcolor="#ffffff">
<form action="RequestJsp.jsp">
<p></p>
<p></p>
<h1>
<input type="submit" name="sub" value="点击!"/>
</h1>
<!--输出访问次数 -->
<h1> 此页面已被访问了${applicationScope.count}次
</h1>
</form>
</body>
</html>
- 使用JSP页面执行el表达式的方法
- JSP页面EL表达式使用的问题
- JSP页面使用EL表达式
- JSP页面禁用EL表达式的原因和实现方法
- jsp页面无法使用el表达式的解决办法
- 关于jsp页面上无法使用EL表达式的问题
- jsp页面不能使用EL表达式
- jsp 页面 el表达式无法使用
- jsp页面中不能使用El表达式
- jsp页面中无法使用EL表达式 ${}
- JSP:El表达式的使用
- JSP页面EL表达式无效的问题
- JSP页面EL表达式无效的问题
- JSP页面EL表达式无效的问题
- JSP页面EL表达式无效的问题
- JSP页面EL表达式无效的问题
- JSP页面EL表达式无效的问题
- jsp页面EL表达式不起作用的问题
- 精通COBOL--11.8 小结
- Eclipse自动生成注释
- 在线客服技术方案
- 阿里妈妈称日均覆盖人数破7000万
- extjs新宠儿
- 使用JSP页面执行el表达式的方法
- javascript 中的事件
- 关于MOSS的学习方向
- 八大亮点将呈现第十七届金鸡百花电影节
- 精通COBOL--第16章 CICS扩展
- 第十七届中国电影盛会在连举行
- Popup
- 传统关系数据库与非结构化数据库对比
- 精通COBOL--16.1 基本概念