有一个PageBean类,内容如下
public class PageBean {
public int maxRowCount; //一共有多少行
public PageBean(){}
public PageBean(ObjectBusiness obj) throws Exception {
this.maxRowCount = obj.getAvailableCount();
}
}在jsp页面通过标签调用这个类,如下:
<jsp:useBean id="page" class="com.fly.PageBean" scope="request">在这里通过id定义的page对象,是调用PageBean里面哪个构造函数产生的对象?
public class PageBean {
public int maxRowCount; //一共有多少行
public PageBean(){}
public PageBean(ObjectBusiness obj) throws Exception {
this.maxRowCount = obj.getAvailableCount();
}
}在jsp页面通过标签调用这个类,如下:
<jsp:useBean id="page" class="com.fly.PageBean" scope="request">在这里通过id定义的page对象,是调用PageBean里面哪个构造函数产生的对象?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货