文件名称:Online.users.statistics
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- 姜**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
环境的搭建:
1、新建一个Web工程
2、在工程的src下新建一个包SMART.JRSOFT.ONLINE
3、将Source下的类拷贝到新建的包SMART.JRSOFT.ONLINE里面
4、在web.xml中配置如下监听:
<listener>
<listener-class>SMART.JRSOFT.ONLINE.OnlineCounter</listener-class>
</listener>
5、将Jsp下的页面拷贝到工程的WebRoot下面
6、运行工程显示页面OnLine.jsp就可以显示当前在线人数
运行注意事项:
1、注意包名的大小写情况
2、注意页面的编码问题-Built environment:
1, create a new Web project
2, during the construction of a new package SMART.JRSOFT.ONLINE under src
3, will be copied to the Source under the class inside the new package SMART.JRSOFT.ONLINE
4, configure the following listener in web.xml:
<listener>
<listener-class> SMART.JRSOFT.ONLINE.OnlineCounter </ listener-class>
</ listener>
5, the Jsp pages copied to the project under the WebRoot following
6, run the project has shown the page OnLine.jsp can display the current line number
Running Notes:
One, pay attention to the case of package name
2, pay attention to the encoding of the page
1、新建一个Web工程
2、在工程的src下新建一个包SMART.JRSOFT.ONLINE
3、将Source下的类拷贝到新建的包SMART.JRSOFT.ONLINE里面
4、在web.xml中配置如下监听:
<listener>
<listener-class>SMART.JRSOFT.ONLINE.OnlineCounter</listener-class>
</listener>
5、将Jsp下的页面拷贝到工程的WebRoot下面
6、运行工程显示页面OnLine.jsp就可以显示当前在线人数
运行注意事项:
1、注意包名的大小写情况
2、注意页面的编码问题-Built environment:
1, create a new Web project
2, during the construction of a new package SMART.JRSOFT.ONLINE under src
3, will be copied to the Source under the class inside the new package SMART.JRSOFT.ONLINE
4, configure the following listener in web.xml:
<listener>
<listener-class> SMART.JRSOFT.ONLINE.OnlineCounter </ listener-class>
</ listener>
5, the Jsp pages copied to the project under the WebRoot following
6, run the project has shown the page OnLine.jsp can display the current line number
Running Notes:
One, pay attention to the case of package name
2, pay attention to the encoding of the page
(系统自动生成,下载前可以参看下载内容)
下载文件列表
9_5_在线用户数统计\Class\OnlineCounter.class
..................\Document\OnLine.doc
..................\Jsp\OnLine.jsp
..................\readme.txt
..................\Source\OnlineCounter.java
..................\Class
..................\Document
..................\Enviroument
..................\Jsp
..................\Source
9_5_在线用户数统计
..................\Document\OnLine.doc
..................\Jsp\OnLine.jsp
..................\readme.txt
..................\Source\OnlineCounter.java
..................\Class
..................\Document
..................\Enviroument
..................\Jsp
..................\Source
9_5_在线用户数统计