报错:
严重: 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.Validator
DirectiveVisitor.visit(Validator.java:135)atorg.apache.jasper.compiler.Node
PageDirective.accept(Node.java:571)
解决:
我是因为jsp本身写了 <%@ page contentType=”text/html;charset=UTF-8” language=”java” %>
在公共引用中又写了一遍,所以报错。