jsp計(jì)數(shù)器-jsp文件
更新時間:2006年10月13日 00:00:00 作者:
<HTML>
<HEAD>
<TITLE>JSP Bean Example</TITLE>
</HEAD>
<BODY>
<!-- Set the scripting language to java -->
<%@ page language="java" %>
<!-- Instantiate the Counter bean with an id of "counter" -->
<jsp:useBean id="counter" scope="session" class="Counter" />
<!-- Set the bean's count property to the value of -->
<!-- the request parameter "count", using the -->
<!-- jsp:setProperty action. -->
<jsp:setProperty name="counter" property="count" param="count" />
<%
// write the current value of the property count
out.println("Count from scriptlet code : "
+ counter.getCount() + "<BR>");
%>
<!-- Get the bean's count property, -->
<!-- using the jsp:getProperty action. -->
Count from jsp:getProperty :
<jsp:getProperty name="counter" property="count" /><BR>
</BODY>
</HTML>
<HEAD>
<TITLE>JSP Bean Example</TITLE>
</HEAD>
<BODY>
<!-- Set the scripting language to java -->
<%@ page language="java" %>
<!-- Instantiate the Counter bean with an id of "counter" -->
<jsp:useBean id="counter" scope="session" class="Counter" />
<!-- Set the bean's count property to the value of -->
<!-- the request parameter "count", using the -->
<!-- jsp:setProperty action. -->
<jsp:setProperty name="counter" property="count" param="count" />
<%
// write the current value of the property count
out.println("Count from scriptlet code : "
+ counter.getCount() + "<BR>");
%>
<!-- Get the bean's count property, -->
<!-- using the jsp:getProperty action. -->
Count from jsp:getProperty :
<jsp:getProperty name="counter" property="count" /><BR>
</BODY>
</HTML>
相關(guān)文章
Spring AOP的實(shí)現(xiàn)原理詳解及實(shí)例
這篇文章主要介紹了Spring AOP的實(shí)現(xiàn)原理詳解及實(shí)例的相關(guān)資料,需要的朋友可以參考下2017-05-05jsp 中HttpClient中的POST方法實(shí)例詳解
這篇文章主要介紹了jsp 中HttpClient中的POST方法實(shí)例詳解的相關(guān)資料,需要的朋友可以參考下2017-05-05JSP動態(tài)實(shí)現(xiàn)web網(wǎng)頁登陸和注冊功能
這篇文章主要介紹是動態(tài)實(shí)現(xiàn)web網(wǎng)頁登陸和注冊功能的示例代碼,文中代碼講解詳細(xì),對我們學(xué)習(xí)JSP有一定的幫助,感興趣的小伙伴可以跟隨小編一起學(xué)習(xí)一下2021-12-12Jsp+Servlet實(shí)現(xiàn)文件上傳下載 文件列表展示(二)
這篇文章主要為大家詳細(xì)介紹了Jsp+Servlet實(shí)現(xiàn)文件上傳下載功能的第二部分,文件列表展示,具有一定的參考價值,感興趣的小伙伴們可以參考一下2018-01-01JavaBean實(shí)現(xiàn)多文件上傳的兩種方法
JavaBean實(shí)現(xiàn)多文件上傳的兩種方法...2006-10-10java易懂易用的MD5加密(可直接運(yùn)行) (1)
出于安全考慮,網(wǎng)絡(luò)的傳輸中經(jīng)常對傳輸數(shù)據(jù)做加密和編碼處理,其中涉及以下幾種2008-11-11