关于Page directive must not have multiple occurrences of pageencoding

来源:互联网 发布:淘宝卖家让我售后 编辑:程序博客网 时间:2024/05/29 17:40

今天遇到的一个低级错误,但是我相信也会有其他人和我遇到一样的问题关于:Page directive must not have multiple occurrences of pageencoding

Page directive must not have multiple occurrences of pageencoding    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:443)    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:103)    at org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:196)    at java.lang.Thread.run(Unknown Source)

这里是因为在jsp页面开头部分多引了下面的pageEncoding=”UTF-8”。

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
0 0
原创粉丝点击