JSTL error
Hi i have the following code in my jsp:
<select name="resultsPerPageSelected" size="1" onchange="document.forms['pagination'].submit()">
<c:if test="${pagination.resultsPerPageSelected == 20}">
<option value="20" selected="selected">20</option>
<option value="40">40</option>
<option value="60">60</option>
<option value="0">All</option>
</c:if>
<c:if test="${pagination.resultsPerPageSelected == 40}">
<option value="20">20</option>
<option value="40" selected="selected">40</option>
<option value="60">60</option>
<option value="0">All</option>
</c:if>
<c:if test="${pagination.resultsPerPageSelected == 60}">
<option value="20">20</option>
<option value="40">40</option>
<option value="60" selected="selected">60</option>
<option value="0">All</option>
</c:if>
<c:if test="${pagination.resultsPerPageSelected == 0}">
<option value="20">20</option>
<option value="40">40</option>
<option value="60">60</option>
<option value="0" selected="selected">All</option>
</c:if>
</select>
and i get this error when i try to build my project using ant:
C:\eclipse\workspace\OER\build\jspsource\org\apache\jsp\reports\domainTrafficClassReport_jsp.java:1303: _jspx_meth_c_if_22(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.reports.domainTrafficClassReport_jsp cannot be applied to (org.apache.taglibs.standard.tag.rt.core.IfTag,javax.servlet.jsp.PageContext)
[javac] if (_jspx_meth_c_if_22(_jspx_th_c_if_21, _jspx_page_context))
in fact i get 25 such errors. Ive been having some problems integrating jstl into my project. I've succesfully used the <c:forEach tag and the ><c:if tag but seem to run into trouble when i try to use the ><c:when> <c: otherwise> and now this <option> tag.
Anyone any ideas where i'm going wrong here or something i should check to make sure ive done
Any help appreciated.
Cheers,
Joe

