I use IntelliJ IDEA Ultimate and Tomcat 9:
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="css/style.css"> <title>Список всех резюме</title> </head> <body> <jsp:include page="fragments/header.jsp"/> <section> <table border="1" cellpadding="8" cellspacing="0"> <tr> <th>Имя</th> <th>Email</th> </tr> <c:forEach items="${resumes}" var="resume"> <jsp:useBean id="resume" type="ru.javawebinar.basejava.model.Resume"/> <tr> <td><a href="resume?uuid=${resume.uuid}">${resume.fullName}</a></td> <td>${resume.getContact(ContactType.MAIL)}</td> </tr> </c:forEach> </table> </section> <jsp:include page="fragments/footer.jsp"/> </body> </html> When outputting through Tomcat, the browser does not display the code in the forEach loop:
<c:forEach items="${resumes}" var="resume"> <jsp:useBean id="resume" type="ru.javawebinar.basejava.model.Resume"/> <tr> <td><a href="resume?uuid=${resume.uuid}">${resume.fullName}</a></td> <td>${resume.getContact(ContactType.MAIL)}</td> </tr> </c:forEach> Everything else is displayed. Tell me where to "dig": this is an error in the code or in the project settings (maybe you can load which library).
Thank you in advance.
nullcomes or empty collection - Oleksіy Morenets