Jsp how the statistics in a number of links are clicked?
Abstract: jsp in how the statistics of a number of links are clicked?
Popularity is the forum is how to do so?
This is a simple counting code on the application.jsp.
<%
Int count = 0;
String counter_name = request.getParameter ( "counter_name");
Try
(
Count = Integer.parseInt ((application.getAttribute (counter_name). ToString ()));
)
Cathc ()
(
)
Count + +;
Application.setAttribute (counter_name, new Integer (counter));
%>
Use counter. This test.jsp page.
This has OK
Once it wrote no shutdown of the server, and how the server will be closed before the data into the database of lasting ah, I do not want a box to the server could not close before reunification reinstall ah
Http://community.csdn.net/Expert/topic/4983/4983305.xml?temp=.8822748
Pages should be in the browser will visit several +1, but also combines the session, that is, a person can not be repeated at 1
You only need to write a numerical changes in the database like!
Counting is not a tool?
↑ Back
Tags: Number
Releated Java Articles
April 30, 2007 | Filed Under API for Java |






