Such code:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="CONTENT-TYPE" content="text/html" charset="UTF-8"> <title>List</title> </head> <body> <c:forEach items="${zayavkas}" var="zayavka"> ${zayavka.id} ${zayavka.fullName} </c:forEach> </body> </html> 

When loading the page instead of the values ​​of variables are displayed: $ {zayavka.id} $ {zayavka.fullName}. Debugger passed the code in zayavkas all the records come. How to make so that values ​​were deduced?

  • Comments are not intended for extended discussion; conversation moved to chat . - PashaPash

1 answer 1

Try this:

  <c:forEach items="${zayavkas}" var="zayavka"> <tr>${zayavka.id}</tr> <tr>${zayavka.fullName}</tr> </c:forEach> 
  • Then <c:out value="${zayavka.id}"/> . <tr> does not help at all, but it will aggravate easily. - Sergey
  • one
    @Sergey, checked by example, without tr it was displayed: zayavka.id, and with tr the transmitted value is bsuart
  • @Sergey. What can tr exacerbate if it's just a page markup? - bsuart
  • Many people like me <tr> need only a table. Moreover, inside <tr> should be only <td> and <th> . The table is not needed - not needed, and <tr> . Of course, you can use any first thing that came to mind, to replace the trifling problem of another, although not noticeable now, but more serious. Yes please. Until the first breakup. - Sergey
  • Trying: $ {zayavka.id} $ {zayavka.fullName} - Iosif Serbskiy