I want to use a method in JSP using EL, which has a parameter. But EL does not support parameters in methods. Actually, I want to show a table in which there is a field that displays a list of values ββin one cell. For each cell, this list will be different, it depends on the parameter. How to do this using EL?
I tried this, but says that it cannot use Integer for String in <c:set var="group" value="${entrant.idGroup}" /> where entrant.idGroup returns int
<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?
source share