报错点我用 !--------------!!--------------!!--------------!!--------------!标注
<div class="content" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="8">绩效考核内容:</td>
</tr>
<tr>
<td align="center" style="width:12%">绩效名称</td>
<td align="center" style="width:20%">绩效目标</td>
<td align="center" style="width:5%">权重(%)</td>
<td align="center" style="width:10%">计划完成时间</td>
<td align="center" style="width:18%">完成情况描述</td>
<td align="center" style="width:5%">自评分</td>
<td align="center" style="width:10%">新增时间</td>
<td align="center" style="width:10%">自评时间</td>
</tr>
<c:forEach items="${list}" var="flag">
<tr>
<td align="center" style="width:12%">
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
<input type="text" id="title${flag.performanceId }" name="title${flag.performanceId }" value="
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
<input type="text" id="title${flag.performanceId }" name="title${flag.performanceId }" value="
</c:if>
</c:if>
</c:if>${flag.title }
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
</c:if> !--------------!!--------------!!--------------!!--------------!
</td>
<td align="center" style="width:20%">
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
<input size="30" type="text" id="content${flag.performanceId }" name="content${flag.performanceId }" value="
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
<input size="30" type="text" id="content${flag.performanceId }" name="content${flag.performanceId }" value="
</c:if>
</c:if>
</c:if>${flag.content }
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
</c:if>!--------------!!--------------!!--------------!!--------------!
</td>
<td align="center" style="width:5%">
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
<input type="text" size="5" id="ration${flag.performanceId }" name="ration${flag.performanceId }" value="
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
<input type="text" size="5" id="ration${flag.performanceId }" name="ration${flag.performanceId }" value="
</c:if>
</c:if>
</c:if>${flag.ration }
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
</c:if>!--------------!!--------------!!--------------!!--------------!
</td>
<td align="center" style="width:10%">
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
<input size="8" type="text" id="planDay${flag.performanceId }" name="planDay${flag.performanceId }" readonly="readonly" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyyMMdd',alwaysUseStartDate:true})" value="
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
<input size="8" type="text" id="planDay${flag.performanceId }" name="planDay${flag.performanceId }" readonly="readonly" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyyMMdd',alwaysUseStartDate:true})" value="
</c:if>
</c:if>
</c:if>${flag.planDay }
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOO' }">
" />
</c:if>
</c:if>
</c:if>!--------------!!--------------!!--------------!!--------------!
</td><td align="center" style="width:18%">
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 }">
<input size="30" type="text" id="execDescript${flag.performanceId }" name="execDescript${flag.performanceId }" value="
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 && p.TId == 1}">
<input size="30" type="text" id="execDescript${flag.performanceId }" name="execDescript${flag.performanceId }" value="
</c:if>
<c:if test="${p.state == 'NOO' && p.selfPoint != -1 && p.TId == 2}">
<input size="30" type="text" id="execDescript${flag.performanceId }" name="execDescript${flag.performanceId }" value="
</c:if>
</c:if>
</c:if>${flag.execDescript }
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 }">
" />
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 && p.TId == 1}">
" />
</c:if>
<c:if test="${p.state == 'NOO' && p.selfPoint != -1 && p.TId == 2}">
" />
</c:if>
</c:if>
</c:if> !--------------!!--------------!!--------------!!--------------!
</td>
<td align="center" style="width:5%">
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 }">
<input type="text" size="6" id="selfPoint${flag.performanceId }" name="selfPoint${flag.performanceId }" value="
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 && p.TId == 1}">
<input type="text" size="6" id="selfPoint${flag.performanceId }" name="selfPoint${flag.performanceId }" value="
</c:if>
<c:if test="${p.state == 'NOO' && p.selfPoint != -1 && p.TId == 2}">
<input type="text" size="6" id="selfPoint${flag.performanceId }" name="selfPoint${flag.performanceId }" value="
</c:if>
</c:if>
</c:if>${flag.selfPoint }
<c:if test="${level == 0}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 }">
" />
</c:if>
</c:if>
<c:if test="${level == 2}">
<c:if test="${p.UId == client.usersId}">
<c:if test="${p.state == 'NOC' && p.selfPoint == -1 && p.TId == 1}">
" />
</c:if>
<c:if test="${p.state == 'NOO' && p.selfPoint != -1 && p.TId == 2}">
" />
</c:if>
</c:if>
</c:if>!--------------!!--------------!!--------------!!--------------!
</td>
<td align="center" style="width:10%">${flag.stateDate }</td>
<td align="center" style="width:10%">${flag.execDate }</td>
</tr>
</c:forEach>
</table>
</div>

解决方案 »

  1.   


    为什么不弄两个或者三个页面,这么多c:if难道这是jstl设计的初衷?跟<%%>有什么区别呢?
      

  2.   


    <div class="content">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="8">绩效考核内容:</td>
    </tr>
    <tr>
    <td align="center" style="width: 12%">绩效名称</td>
    <td align="center" style="width: 20%">绩效目标</td>
    <td align="center" style="width: 5%">权重(%)</td>
    <td align="center" style="width: 10%">计划完成时间</td>
    <td align="center" style="width: 18%">完成情况描述</td>
    <td align="center" style="width: 5%">自评分</td>
    <td align="center" style="width: 10%">新增时间</td>
    <td align="center" style="width: 10%">自评时间</td>
    </tr>
    <c:forEach items="${list}" var="flag">
    <tr>
    <td align="center" style="width: 12%">
    <c:if test="${level == 0 && p.state == 'NOO' }">
    <input type="text" id="title${flag.performanceId }" name="title${flag.performanceId }" value="${flag.title }" />
    </c:if>
    <c:if test="${level == 2 && p.UId == client.usersId&&p.state == 'NOO'}">
    <input type="text" id="title${flag.performanceId }" name="title${flag.performanceId }" value="${flag.title }" />
    </c:if>
    </td>
    <td align="center" style="width: 20%">
    <c:if test="${level == 0 && p.state == 'NOO' }">
    <input size="30" type="text" id="content${flag.performanceId }" name="content${flag.performanceId }" value="${flag.content }" />
    </c:if>
    <c:if test="${level == 2 && p.UId == client.usersId&&p.state == 'NOO'}">
    <input size="30" type="text" id="content${flag.performanceId }" name="content${flag.performanceId }" value="${flag.content }" />
    </c:if>
    </td>
    <td align="center" style="width: 5%">
    <c:if test="${level == 0 && p.state == 'NOO' }">
    <input type="text" size="5" id="ration${flag.performanceId }" name="ration${flag.performanceId }" value="${flag.ration }" />
    </c:if>
    <c:if test="${level == 2 && p.UId == client.usersId&&p.state == 'NOO'}">
    <input type="text" size="5" id="ration${flag.performanceId }" name="ration${flag.performanceId }" value="${flag.ration }" />
    </c:if>
    </td>
    <td align="center" style="width: 10%">
    <c:if test="${level == 0 && p.state == 'NOO' }">
    <input size="8" type="text" id="planDay${flag.performanceId }" 
    name="planDay${flag.performanceId }" readonly="readonly"
    onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyyMMdd',alwaysUseStartDate:true})"
    value="${flag.planDay }" />
    </c:if>
    <c:if test="${level == 2 && p.UId == client.usersId&&p.state == 'NOO'}">
    <input size="8" type="text" id="planDay${flag.performanceId }"
     name="planDay${flag.performanceId }" readonly="readonly" 
     onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyyMMdd',alwaysUseStartDate:true})" 
     value="${flag.planDay }" />
    </c:if>
    </td> <td align="center" style="width: 18%">
    <c:if test="${level == 0 &&p.state == 'NOC' && p.selfPoint == -1}">
    <input size="30" type="text"
    id="execDescript${flag.performanceId }"
    name="execDescript${flag.performanceId }"
    value="${flag.execDescript }" />
    </c:if>
    <c:if test="${level == 2 && p.UId == client.usersId}">
    <c:if test="${p.state == 'NOC'&& p.selfPoint == -1 && p.TId == 1}">
    <input size="30" type="text" id="execDescript${flag.performanceId }" name="execDescript${flag.performanceId }" value="${flag.execDescript }" />
    </c:if>
    <c:if test="${p.state == 'NOO' && p.selfPoint != -1 && p.TId == 2}">
    <input size="30" type="text" id="execDescript${flag.performanceId }" name="execDescript${flag.performanceId }" value="${flag.execDescript }" />
    </c:if>
    </c:if>
    </td>

    <td align="center" style="width: 5%">
    <c:if test="${level == 0&&p.state == 'NOC' && p.selfPoint == -1 }">
    <input type="text" size="6" id="selfPoint${flag.performanceId }" name="selfPoint${flag.performanceId }" value="${flag.selfPoint }" />
    </c:if>
    <c:if test="${level == 2 && p.UId == client.usersId}">
    <c:if test="${p.state == 'NOC' && p.selfPoint == -1 && p.TId == 1}">
    <input type="text" size="6" id="selfPoint${flag.performanceId }" name="selfPoint${flag.performanceId }" value="${flag.selfPoint }" />
    </c:if>
    <c:if test="${p.state == 'NOO' && p.selfPoint != -1 && p.TId == 2}">
    <input type="text" size="6" id="selfPoint${flag.performanceId }" name="selfPoint${flag.performanceId }" value="${flag.selfPoint }" />
    </c:if>
    </c:if>
    </td>
    <td align="center" style="width: 10%">${flag.stateDate }</td>
    <td align="center" style="width: 10%">${flag.execDate }</td>
    </tr>
    </c:forEach>
    </table>差不多是这个意思吧···,不过太纠结了,你的c:if真的好多,对起来很麻烦
      

  3.   


    你的c标签很多,有一些我就删掉了,然后在按照之前的改了下,有些地方可能修改的有问题,就是test里的东西,在仔细检查下吧,基本上能放到一起的都放到一起了,分类处理就可以了,现在很少用到这个标签了·
      

  4.   

    看看c标签库是否导入了~~,没有的话<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>