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

Posted 皎陽

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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,

 

最后发现竟然是这么一上小问题,在pageEncoding="GBK"前面少了一个空格

 

<%@ page language="Java" contentType="text/html; charset=GBK"pageEncoding="GBK"%>

 

加个空格,问题解决。

以上是关于The JSP specification requires that an attribute name is preceded by whitespace的主要内容,如果未能解决你的问题,请参考以下文章

/cart.jsp (line: [32], column: [45]) The JSP specification requires that an attribute name is preced

Message /index.jsp (line: [17], column: [45]) The JSP specification requires that an attribute name

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

异常:The JSP specification requires that an attribute name is preceded by whitespace

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

eclipse部署Tomcat6 : The server does not support version 3.0 of the JEE Web module specification