求助:weblogic服务器,strust+spring架构,使用标准标签库出现诡异问题
weblogic服务器,strust+spring架构,出新以下错误,哪位大虾知道是为什么啊,谢谢Caused by: javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /pages/usertest4sprstr/userList.jsp
userList.jsp:30:23: Static attribute must be a String literal, its illegal to specify an expression.
<c:forEach var="user" items="${users1}" varStatus="status">
^---^
userList.jsp:30:23: Static attribute must be a String literal, its illegal to specify an expression.
<c:forEach var="user" items="${users1}" varStatus="status">
^---^
userList.jsp:32:9: Static attribute must be a String literal, its illegal to specify an expression.
<c:when test="${status.count % 2 == 0}">
^--^
userList.jsp:32:9: Static attribute must be a String literal, its illegal to specify an expression.
<c:when test="${status.count % 2 == 0}">
^--^
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:252)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
... 45 more
出现错误的源代码在下面:
<c:forEach var="user" items="${users}" varStatus="status">
<c:choose>
<c:when test="${status.count % 2 == 0}">
<tr class="even">
</c:when>
<c:otherwise>
<tr class="odd">
</c:otherwise>
</c:choose>
</tr>
</c:forEach> --------------------编程问答-------------------- userList.jsp:30:23: Static attribute must be a String literal, its illegal to specify an expression.
<c:forEach var="user" items="${users1}" varStatus="status">
换个名称看看
补充:企业软件 , 中间件