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

 

加个空格,问题解决。

相关文章:

  • 2021-06-23
  • 2022-03-01
  • 2021-11-14
  • 2022-02-22
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-26
  • 2021-07-17
  • 2022-12-23
  • 2021-05-24
  • 2021-09-06
相关资源
相似解决方案