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"%>

加个空格,问题解决

posted @ 2017-11-30 21:03  橘柑之味  阅读(135)  评论(0编辑  收藏  举报