illegal to have multiple occurrences of contentType with different values (old: text/html; charset=

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页面的编码格式改成一样的就好了

你可能感兴趣的:(jsp,编译器)