I am trying to make something easy, but it does not work. Am I missing something obvious?
my jsp:
<c:if test="${not empty listeApp}"> <table border = "1"> <c:forEach var="apps" items="${listeApp}" > <tr> <td>${apps.ID_APPLICATION}</td> <td>${apps.ID_APPLICATION}</td> </tr> </c:forEach> </table>
my controller:
public ModelAndView portail() { applicationDao appDAO = new applicationJPADaoImpl(); return new ModelAndView("portail", "listeApp", appDAO.listeAll()); }
Nothing is displayed.
${listeApp[0].ID_APPLICATION} works.
My list is good, I printed it in sysout without any problems. I can get the length of ${fn:length(listeApp)} , but I would like to use the Foreach function :)
Any tips? Thanks
source share