问答详情
源自:2-5 数据展示

foreach取值抛异常


Type Exception Report

Message An exception occurred processing JSP page [/WEB-INF/jsp/back/list.jsp] at line [54]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: An exception occurred processing JSP page [/WEB-INF/jsp/back/list.jsp] at line [54]

51:                         <tr <c:if test="${status.index % 2 != 0}">style='background-color: #ECF6EE;'</c:if> >
52:                             <td><input type="checkbox" /></td>
53:                             <td>${status.index + 1}</td>
54:                             <td>${message.command}</td>
55:                             <td>${message}</td>
56:                             <td>
57:                                 <a href="#">淇敼</a>&nbsp;&nbsp;&nbsp


提问者:qq_寒冰_8 2019-03-01 12:17

个回答

  • 夏小屋
    2019-09-23 15:29:21

    同问题,求解答

  • qq_慕勒0393944
    2019-03-21 14:49:00

      <tr <c:if test="${status.index % 2 != 0}">style='background-color: #ECF6EE;
      style 后面的单引号换成双引号