I want to use a method in JSP using EL that has a parameter. But EL doesn't support parameters in methods. Actually I want to show a table, which has a field that output a list of values in one cell. For every cell this list will be different, it depends on parameter. How can I do this using EL?
I have tried this, but is says that it can not cast Integer to String in
<c:set var="group" value="${entrant.idGroup}" />
where entrant.idGroup
return int value
<c:forEach var="entrant" items="${bean.entrants}">
<tr>
<td>${entrant.idEntrant}</td>
<c:set var="group" value="${entrant.idGroup}" />
<td><%=bean.getGroupCode(Integer.parseInt((String)pageContext.getAttribute("group")))%></td>
<td>${entrant.name}</td>
</c:forEach>
But even if it works, I want to use pure EL in JSP. How can I achieve this?