JPA: persis vs. merge.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
3 xmlns:c="http://java.sun.com/jsp/jstl/core"
4 xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
5 xmlns:fn="http://java.sun.com/jsp/jstl/functions"
8 <jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
10 <p><fmt:message key="uvod.naposledyPridanePodniky"/>:</p>
12 <c:forEach var="p" items="${uvod.podniky}">
14 <h2><a href="?akce=detail&amp;podnik=${p.id}"><c:out value="${p.nazev}"/></a></h2>
15 <p><c:out value="${p.popis}"/></p>
17 <fmt:message key="uvod.adresa"/>:<br/>
18 <c:out value="${p.ulice}"/>&#160;
19 <c:out value="${p.cisloPopisne}"/><br/>
20 <c:out value="${p.mesto}"/>
22 <c:if test="${p.url != null}">
23 <p><a href="${fn:escapeXml(p.url)}"><fmt:message key="uvod.www"/></a></p>