java/nekurak.net-web/web/WEB-INF/atom/atom.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue, 08 Jun 2010 09:09:17 +0200
changeset 130 1bbff3f5181f
parent 49 9b2a597cc862
child 145 0efefbf5f8b6
permissions -rw-r--r--
komentáře – escapování a EJB
     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 	  version="2.0">
     6     <jsp:directive.page contentType="application/atom+xml"/>
     7 
     8     <!-- <lokalizace> -->
     9     <c:if test="${param.jazyk != null}">
    10 	<fmt:setLocale value="${param.jazyk}" scope="session"/>
    11     </c:if>
    12     <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    13     <!-- </lokalizace> -->
    14 
    15     <jsp:useBean id="atom" class="cz.frantovo.nekurak.web.Atom" scope="request"/>
    16 
    17     <feed xmlns="http://www.w3.org/2005/Atom">
    18 	<title><fmt:message key="nazev"/></title>
    19 	<subtitle><fmt:message key="popis"/></subtitle>
    20 	<link href="http://nekurak.net/atom/" rel="self"/>
    21 	<link href="http://nekurak.net/"/>
    22 	<updated>
    23 	    <fmt:formatDate value="${atom.datumAktualizace}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    24 	</updated>
    25 	<author>
    26 	    <name>František Kučera</name>
    27 	    <email>franta_nechci_spam@frantovo.cz</email>
    28 	</author>
    29 	<id>urn:uuid:0663f9ab-e289-47b3-893f-5bafcf8dc110</id>
    30 
    31 
    32 	<c:forEach var="podnik" items="${atom.podniky}">
    33 	    <entry>
    34 		<title><c:out value="${podnik.nazev}"/></title>
    35 		<link href="http://nekurak.net/?akce=detail&amp;amp;podnik=${podnik.id}"/>
    36 		<id>urn:NekurakNET:podnik:${podnik.id}</id>
    37 		<updated>
    38 		    <fmt:formatDate value="${podnik.datum}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    39 		</updated>
    40 		<summary><c:out value="${podnik.popis}"/></summary>
    41 	    </entry>
    42 	</c:forEach>
    43 
    44 
    45     </feed>
    46 
    47 </jsp:root>