+ -
当前位置:首页 → 问答吧 → org.apache.jasper.JasperException: Unable to compile class for JSP:

org.apache.jasper.JasperException: Unable to compile class for JSP:

时间:2011-11-22

来源:互联网

2011-11-22 16:33:58 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 442 in the jsp file: /WEB-INF/JSP/GZ/inputPublicSupervision_Data.jsp
The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)
439: <select name="reportWay" class="text_a" style="width:120px;">
440:
441: <c:forEach var="nt1" items="${reportWay}">
442: <option value="${nt1.value}" >${nt1.content}<c:if test="${nt1.value} eq 'G01'">selected</c:if></option>
443: </c:forEach>
444: </select></td>
445: <td width="120" bgcolor="#E8F2F9">鏉ョ數鍙风爜</td>


An error occurred at line: 470 in the jsp file: /WEB-INF/JSP/GZ/inputPublicSupervision_Data.jsp
The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)
467: <select name="acceptCategory" class="text_a" style="width:120px;">
468:
469: <c:forEach var="nt2" items="${acceptCategory}">
470: <option value="${nt2.value}" >${nt2.content}<c:if test="${nt2.value} eq 'G01'">selected</c:if></option>
471: </c:forEach>
472: </select></td>
473: </tr>


An error occurred at line: 505 in the jsp file: /WEB-INF/JSP/GZ/inputPublicSupervision_Data.jsp
The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)
502: <select name="isKps" class="text_a" style="width:120px;" onFocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
503: <option value="G04">闈為噸鐐?/option>
504: <c:forEach var="nt" items="${isKps}">
505: <option value="${nt.value}" >${nt.content}<c:if test="${nt.value} eq 'G04'">selected</c:if></option>
506: </c:forEach>
507: </select></td>

作者: gzq_snow   发布时间: 2011-11-22

An error occurred at line: 442 in the jsp file: /WEB-INF/JSP/GZ/inputPublicSupervision_Data.jsp
The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)


这个页面的setTest方法的参数不正确

作者: xinlan1022   发布时间: 2011-11-22

<c:if test="return (${nt1.value} eq 'G01');">

作者: yijianpiaohongli   发布时间: 2011-11-22