怎么没人啊?急
客户端用IE7.0查询好了,只是点上一页,下一页的时候出错,IE6.0则就出上面的错误
客户端用IE7.0查询好了,只是点上一页,下一页的时候出错,IE6.0则就出上面的错误
解决方案 »
- JSValidation
- 关于Aop的问题
- 用jsp生成图形验证码的问题,报java.lang.NullPointerException错误
- 数据库存放图片:存放路径 or存放blob数据?
- 急,下拉列表的显示问题
- SSH架构,继承HibernateDaoSupport,怎么控制事务
- 请问,下边的现象是怎么实现的?
- 那位有在JBuilder中采用Struts连接数据库的例子啊?不胜感激!!!
- jboss与tomcat整合版测试
- ssh中,查询结果显示在一个table中,怎样可以对查询出来的结果,进行二次筛选?就是在查询结果中进行二次查询?
- DispatchAction的问题
- java 花括号 对其
我估计你家里的电脑上工程的编码是gbk,而在公司重新import以后就变成utf-8的,所以这个也很重要。
谢谢!
System.out.println("asd"+this.getQueryValue());
String strPtname =new String(this.getQueryValue().getBytes("ISO-8859-1"), "UTF-8");
int totalRow=booksService.getRows(this.getQueryName(),this.getQueryValue());
pager=pagerService.getPager(this.getCurrentPage(), this.getPagerMethod(), totalRow);
this.setCurrentPage(String.valueOf(pager.getCurrentPage()));
this.setTotalRows(String.valueOf(totalRow));
availableItems=booksService.getBooks(this.getQueryName(),this.getQueryValue(),pager.getPageSize(), pager.getStartRow());
this.setQueryName(this.getQueryName());
this.setQueryValue(this.getQueryValue());
this.setSearchName(this.getQueryName());
this.setSearchValue(this.getQueryValue());
return SUCCESS;
}
public String listpages() throws Exception {
System.out.println("asd"+this.getQueryValue());
String strPtname =new String(this.getQueryValue().getBytes("ISO-8859-1"), "UTF-8");
int totalRow=booksService.getRows(this.getQueryName(),strPtname);
pager=pagerService.getPager(this.getCurrentPage(), this.getPagerMethod(), totalRow);
this.setCurrentPage(String.valueOf(pager.getCurrentPage()));
this.setTotalRows(String.valueOf(totalRow));
availableItems=booksService.getBooks(this.getQueryName(),strPtname,pager.getPageSize(), pager.getStartRow());
this.setQueryName(this.getQueryName());
this.setQueryValue(strPtname);
this.setSearchName(this.getQueryName());
this.setSearchValue(strPtname);
return SUCCESS;
}JSP页面调用 listpages()