import java.io.Serializable;
public class Counter implements Serializable{
// Initialize the bean on creation
int count = 0;
// Parameterless Constructor
public Counter() {
}
// Property Getter
public int getCount() {
// Increment the count property, with every request
http://www.gaodaima.com/41732.htmljsp计数器-bean文件
count++;
return this.count;
}
// Property Setter
public void setCount(int count) {
this.count = count;
}
}
欢迎大家阅读《jsp计数器-bean文件》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码