位置于:书籍教程首页>>网页设计>>JSP>>正文

jsp计数器-bean文件

资料:http://xp163.com/   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;
}
}

 
 jsp计数器-bean文件相关说明
 jsp计数器-bean文件相关说明

 

 书籍教程站内推荐信息
 书籍教程网站地图