I am trying to invoke a method inside a loop in jstl but when I type in period after SQLHelper I am not getting the method name.
<%@page import="com.servlet.session.SQLHelper"%>
<c:set var="pc" value="${0}" />
<c:forEach var="report" items="${report2}" varStatus="iter">
<tr id="test">
<c:set var="pc" value="<% pc + SQLHelper.GetCount(${report.id}, ${d1}, ${d2}); %>" />
</c:forEach>
what is the correct way to call the method?