打印本文 打印本文  关闭窗口 关闭窗口
jsp计数器-bean文件
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:26:35
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
count++;

return this.count;
}

// Property Setter
public void setCount(int count) {

this.count = count;
}
}



打印本文 打印本文  关闭窗口 关闭窗口