jsp计数器-bean文件
程序员文章站
2022-03-10 15:37:01
import java.io.serializable;public class counter implements serializable{// initializ...
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;
}
}
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文件