程序开发中的细节一:重视空格的缺失(The JSP specification requires that an attribute name is preceded by whitespace)
2016-09-01 15:26
525 查看
许多刚入行的程序员会在编辑JSP页面中,遇到一些问题,下面是一个比较难找的问题
JSP页面自建时的头是上面的,可是为了个人习惯可能会修改成这种格式
这两种看是没有区别,但是运行就会报错!
org.apache.jasper.JasperException: /jsp/linkman/list.jsp (line: 1, column: 84) The JSP specification requires that an attribute name is preceded by whitespace!
仔细检查这两张图的区别,你会发现在pageEncoding之前漏了一个空格。
改为:
问题解决
JSP页面自建时的头是上面的,可是为了个人习惯可能会修改成这种格式
这两种看是没有区别,但是运行就会报错!
org.apache.jasper.JasperException: /jsp/linkman/list.jsp (line: 1, column: 84) The JSP specification requires that an attribute name is preceded by whitespace!
仔细检查这两张图的区别,你会发现在pageEncoding之前漏了一个空格。
改为:
问题解决
相关文章推荐
- 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--异常
- The JSP specification requires that an attribute name is preceded by whitespace
- 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
- 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
- The JSP specification requires that an attribute name is preceded by whitespace
- eclipse中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
- 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
- jsp页面 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
- The JSP specification requires that an attribute name is preceded by whitespace