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

加個空格,問題解決



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章