illegal to have multiple occurrences of contentType with different values (old: text/html; charset=
2012-04-13 18:45
791 查看
org.apache.jasper.JasperException: /jquery.jsp(1,2) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=gbk) 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:132) org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:608) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
彩色字体的意思是说新的页面(findAll.jsp)和旧的页面(jquery.jsp,这个jsp在findAll.jsp中被引用)用的编码格式不一样,导致编译器编译时发生错误
解决方法:将两个jsp页面的编码格式改成一样的就好了
相关文章推荐
- illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=utf-8)
- Page directive: illegal to have multiple occurrences of contentType with different values (old: text
- Page directive: illegal to have multiple occurrences of contentType with different values (old: text
- 解决报错 Page directive: illegal to have multiple occurrences of contentType with different values (old:
- Page directive: illegal to have multiple occurrences of contentType with different values
- Page directive: illegal to have multiple occurrences of contentType with different values
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- illegal to have multiple occurrences of contentType with different values
- JSP页面报错illegal to have multiple occurrences of contentType with different values
- 解决illegal to have multiple occurrences of contentType with different values错误
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- Page directive: illegal to have multiple occurrences of contentType with different values
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- illegal to have multiple occurrences of contentType with different values 解决
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- 错误记录:illegal to have multiple occurrences of contentType with different values
- illegal to have multiple occurrences of 'contentType' with different values (old: [text/html; chars
- illegal to have mutiple occurrences of contentType with different values
- 异常:illegal to have multiple occurrences of 'contentType' with different values