后端所有代码查遍了,是15的都修改为100,但是结果还是15条,到底是什么原因啊???有大神知道吗
<div class="pagelist">
<pg:pager url="${ctx}/job_dataList.do" maxIndexPages="5"
items="${pagers.total}" maxPageItems="15"
export="curPage=pageNumber">
<pg:param name="job_name" value="${bean.job_name}" />
<pg:param name="job_dscrip" value="${bean.job_dscrip}" />
<pg:param name="job_tutor" value="${bean.job_tutor}" />
<pg:last>
BaseDaoImpl
@SuppressWarnings("rawtypes")
private void setPagers(Query query,Pager pages) {
Integer pageSize = SystemContext.getPageSize();
Integer pageOffset = SystemContext.getPageOffset();
if(pageOffset==null||pageOffset<0) pageOffset = 0;
if(pageSize==null||pageSize<0) pageSize = 100;//15
pages.setOffset(pageOffset);
pages.setSize(pageSize);
query.setFirstResult(pageOffset).setMaxResults(pageSize);
}
SystemContextFilter
public void init(FilterConfig cfg) throws ServletException {
try {
pageSize = Integer.parseInt(cfg.getInitParameter("pageSize"));
} catch (NumberFormatException e) {
pageSize = 100;//15
}
}