前台显示 :
2[attach]915[/attach]
这是怎么回事?
我操作数据库的代码是:
List dataAll = this.getJdbcTemplate().queryForList(sql); //操作数据库
List data = new ArrayList();
int start = pageIndex * pageSize;
int end = start + pageSize;
int i = 0;
for (int l = dataAll.size(); i < l; ++i) {
HashMap recode = (HashMap) dataAll.get(i);
if (recode == null)
continue;
if ((start <= i) && (i < end)) {
data.add(recode);
}
}
HashMap request = new HashMap();
request.put("data", data);
request.put("total", Integer.valueOf(dataAll.size()));