jsp页面 The JSP specification requires that an attribute name is preceded by whitespace

一个jsp页面报错:The JSP specification requires that an attribute name is preceded by whitespace

发现是contentType="text/html; charset=UTF-8"与pageEncoding="UTF-8"中间少了一个空格,加上空格后解决!


<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>

猜你喜欢

转载自blog.csdn.net/ypp91zr/article/details/78892120
jsp