JSP编程一直出现org.apache.jasper.JasperException

来源:百度知道 编辑:UC知道 时间:2024/05/16 07:12:40
org.apache.jasper.JasperException: /include.inc(5,0) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=gb2312, new: text/html;charset=gb2312)
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:126)
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:550)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node

old: text/html; charset=gb2312, new: text/html;charset=gb2312)
说明你包含的页面与现在的页面中有相同text/html;charset=gb2312设置语句
去掉一句就ok了.还有一般是不允许在被包含的页面中出现<html><body>这种标签的,要不然就重复了.多试试就知道了

old: text/html; charset=gb2312, new: text/html;charset=gb2312)
说明你包含的页面与现在的页面中有相同text/html;charset=gb2312设置语句