这个问题出现在提示的页面中,是由于缺少一个空格导致的:
The JSP specification requires that an attribute name is preceded by whitespace,
通过提示的错误信息,我们可以确定是哪一行出现了错误,比如我的这个错误信息:
org.apache.jasper.JasperException: /WEB-INF/html/regist.jsp (line: 12, column: 56),
说明在regist.jsp页面中,(line: 12, column: 56)这里出现错误,也就是缺少一个空格,
我的出现错误的那段代码如下:
<s:textfield name="regist.email"label="put your email"></s:textfield>,只需要在label
前面添加一个空格就好了。