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

加个空格,问题解决