[置顶] Tomcat: org.apache.jasper.JasperException


运行javaWeb项目时出现如下异常:


The JSP specification requires that an attribute name is preceded by whitespace


经检查发现是jsp中用到的<c:forEach>中,由于用了压缩,属性之间没有空格,如下:


<c:forEach items="${test}"var="list"varStatus="row“...


解决方法:属性之间添加空格即可~


<c:forEach items="${test}" var="list" varStatus="row“...


你可能感兴趣的:(tomcat,javaweb,whitespace)