?

org.apache.jasper.JasperException: /release/inc/common.jsp(1,1) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html;charset=GBK, new: text/html; charset=GBK)
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:127)
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:549)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
我两个contentType肯定一样,我是COPY过去,怎么还有错?页面里还有这个
<meta http-equiv="content-Type" content="text/html;charset=GBK"/>
最有可能哪出错?

解决方案 »

  1.   

    你的一个jsp文件中包含两个content="text/html;charset=GBK",你删除一个,就可以了。这也包含include的。
      

  2.   

    只用<%@ page contentType="text/html;charset=GBK" language="java"%>试一试把<meta http-equiv="content-Type" content="text/html;charset=GBK"/> 去掉
      

  3.   

    你的:<meta http-equiv="content-Type" content="text/html;charset=GBK"/>
    我的:<meta http-equiv="Content-Type" content="text/html;charset=GBK">
    知道什么错了吗?