?? 0178.htm
字號:
<html>
<head>
<title>新時代軟件教程:操作系統 主頁制作 服務器 設計軟件 網絡技術 編程語言 文字編輯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
body, table {font-size: 9pt; font-family: 宋體}
a {text-decoration:none}
a:hover {color: red;text-decoration:underline}
.1 {background-color: rgb(245,245,245)}
-->
</style>
</head>
<p align="center"><script src="../../1.js"></script></a>
<p align="center"><big><strong>jsp計數器-jsp文件</strong></big></p>
<div align="right">---摘自互聯網</div>
<br><HTML><br>
<HEAD><br>
<TITLE>JSP Bean Example</TITLE><br>
</HEAD><br>
<br>
<BODY><br>
<br>
<!-- Set the scripting language to java --><br>
<%@ page language="java" %><br>
<br>
<!-- Instantiate the Counter bean with an id of "counter" --><br>
<jsp:useBean id="counter" scope="session" class="Counter" /><br>
<br>
<!-- Set the bean's count property to the value of --><br>
<!-- the request parameter "count", using the --><br>
<!-- jsp:setProperty action. --><br>
<jsp:setProperty name="counter" property="count" param="count" /><br>
<br>
<%<br>
<br>
// write the current value of the property count<br>
out.println("Count from scriptlet code : "<br>
+ counter.getCount() + "<BR>");<br>
<br>
%><br>
<br>
<!-- Get the bean's count property, --><br>
<!-- using the jsp:getProperty action. --><br>
Count from jsp:getProperty :<br>
<jsp:getProperty name="counter" property="count" /><BR><br>
<br>
</BODY><br>
</HTML>
</table>
<p align="center"><script src="../../2.js"></script></a>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -