|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
<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> 返回类别: 教程 上一教程: 利用JAVA语言实现支持视频点播的WEB服务器 下一教程: HELLOWORLD问题集精华 您可以阅读与"JSP计数器-JSP文件"相关的教程: · JSP计数器-BEAN文件 · JSP计数器代码 · JSP计数器制作 · 一个可以防止刷新的JSP计数器 · JSP计数器制作手册 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |