源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

jsp计数器-jsp文件

  • 时间:2022-11-10 19:49 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:jsp计数器-jsp文件
<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>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部