Description: 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
To Search:
File list (Check if you may need any files):
9_5_在线用户数统计\Class\OnlineCounter.class
..................\Document\OnLine.doc
..................\Jsp\OnLine.jsp
..................\readme.txt
..................\Source\OnlineCounter.java
..................\Class
..................\Document
..................\Enviroument
..................\Jsp
..................\Source
9_5_在线用户数统计