建议你首先当当一个高一点的tomcat版本4.0以上的,再看有什么问题吗?

解决方案 »

  1.   

    建议你首先当当一个高一点的tomcat版本4.0以上的,再看有什么问题吗?
      

  2.   

    <%@ page contentType="text/html; charset=GBK" %>
    试试看呢!
      

  3.   

    org.apache.jasper.compiler.CompileException: C:\tomcat-3.2.4\webapps\ROOT\soft_down\admin\addnew.jsp(2,0) Page directive:
     can't have multiple occurrences of contentType
    ~~~~~~不能有多个contentType.在开头加上这句看看:
    <%request.setCharacterEncoding("GBK")%>
      

  4.   

    加上下面的几句
    <%@ page contentType="text/html; charset=GBK"%>
    <META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
    href="goods/5558.css" rel=stylesheet type=text/css>
    <META content="Microsoft FrontPage 4.0" name=GENERATOR>
      

  5.   

    从错误提示上来看,好像你设置了多个charset。
    楼上的哥们用的方法应该可以,这是编码格式的强制转换。
    你也可以用request.getCharacterEncoding()方法来取得编码格式,然后在charset里采用相应的格式!