怎么没人啊?急
客户端用IE7.0查询好了,只是点上一页,下一页的时候出错,IE6.0则就出上面的错误

解决方案 »

  1.   

    <%@ page language="java" pageEncoding="GBK"%>改下这个看看... 
      

  2.   

    全用GBK试一下,按说能搞定!
      

  3.   

    filterConfig.getInitParameter("encoding")得到的是utf-8?
      

  4.   

    我建议全部改成utf-8比较彻底。
      

  5.   

    我编码全都是utf-8啊,清查了好多遍了,并且在家里运行得很正常,把这程序移到办公室就出这个问题了,郁闷得很啊!
      

  6.   

    把<meta http-equiv="Content-type" content="UTF-8">的编码改成GBK就可以了。
    我估计你家里的电脑上工程的编码是gbk,而在公司重新import以后就变成utf-8的,所以这个也很重要。
      

  7.   

    试试这个http://www.google.com/search?rlz=1C1CHMG_zh-CNJP291&aq=f&sourceid=chrome&ie=UTF-8&q=uriencoding
      

  8.   

    全部改成GBK编码也不行,这是怎么回事啊,请大家帮帮我啊,现在就是翻页乱码了
    谢谢!
      

  9.   

    是不是只是最后一个字符乱码?是不是在tomcat上会,而在weblogic上就不会?用tomcat的时候,过滤器对这种URL传参(get方式提交)的乱码是没有用的,应该在你传递参数的时候进行预编码。比如你的页面编码是UTF-8的,那么在你的页面上可以这样写(javascript代码):url='action.do?param='+encodeURIComponent(parame)。这样在页面上得到的参数就显示正常了。
      

  10.   

    public String list() 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(),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()