HI,
I am new to JSTL and currenlty working on it. I am getting the below exception when i invoke the
JSP.
java.lang.NumberFormatException: For input
string: "$noRows"
CODE:
JSP:
<c:if test="${(displaySize - noRows) gt 0}">
<tr >
<td><!--<a href="javascript:generate_prevChannel_js()" >
<img src="images/arrow_up.png" alt="Previous Channels"/>
</a> -->
</td>
</tr>
</c:if>
SErvlet:
session.setAttribute("displaySize", 10);
session.setAttribute("noRows",10);
BOth the displaySize and noRows are session attributes and are numbers. Will the EL inside the
test automatically convert the session variable string to numbers and perform the subtraction?
Kindly reply.
Regards,
mahesh