解决报错 Page directive: illegal to have multiple occurrences of contentType with different values (old:

来源:互联网 发布:sql注入教程 编辑:程序博客网 时间:2024/05/22 03:02

报错:

严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /system/common/include/bootstrap_include.jsp (line: 3, column: 2) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html;charset=UTF-8)
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:107)
at org.apache.jasper.compiler.ValidatorDirectiveVisitor.visit(Validator.java:135)atorg.apache.jasper.compiler.NodePageDirective.accept(Node.java:571)

解决:
我是因为jsp本身写了 <%@ page contentType=”text/html;charset=UTF-8” language=”java” %>
在公共引用中又写了一遍,所以报错。

阅读全文
0 0