动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
  
   Asp → 阅读文章

 jsp计数器-jsp文件

作者来源: 
阅读 1881 人次 , 2006-3-29 4:22: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>

 
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:jsp计数器-bean文件
· 下一篇:邮件发送简单例子-jsp文件
· 作一个可以直接和浏览器进行交互的组件
· ASP.NET 2.0中的DataSource系列控件
· WebComputing━ADO总结报告1
· 讨论 SELECT TOP N 问题
· ASP中FSO的神奇功能 - FSO不能做到的


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077