java/nekurak.net-web/web/WEB-INF/atom/atom.jsp
changeset 103 bafbc7877425
child 145 0efefbf5f8b6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/atom/atom.jsp	Wed Apr 14 00:39:12 2010 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     1.6 +	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.7 +	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     1.8 +	  version="2.0">
     1.9 +    <jsp:directive.page contentType="application/atom+xml"/>
    1.10 +
    1.11 +    <!-- <lokalizace> -->
    1.12 +    <c:if test="${param.jazyk != null}">
    1.13 +	<fmt:setLocale value="${param.jazyk}" scope="session"/>
    1.14 +    </c:if>
    1.15 +    <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    1.16 +    <!-- </lokalizace> -->
    1.17 +
    1.18 +    <jsp:useBean id="atom" class="cz.frantovo.nekurak.web.Atom" scope="request"/>
    1.19 +
    1.20 +    <feed xmlns="http://www.w3.org/2005/Atom">
    1.21 +	<title><fmt:message key="nazev"/></title>
    1.22 +	<subtitle><fmt:message key="popis"/></subtitle>
    1.23 +	<link href="http://nekurak.net/atom/" rel="self"/>
    1.24 +	<link href="http://nekurak.net/"/>
    1.25 +	<updated>
    1.26 +	    <fmt:formatDate value="${atom.datumAktualizace}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    1.27 +	</updated>
    1.28 +	<author>
    1.29 +	    <name>František Kučera</name>
    1.30 +	    <email>franta_nechci_spam@frantovo.cz</email>
    1.31 +	</author>
    1.32 +	<id>urn:uuid:0663f9ab-e289-47b3-893f-5bafcf8dc110</id>
    1.33 +
    1.34 +
    1.35 +	<c:forEach var="podnik" items="${atom.podniky}">
    1.36 +	    <entry>
    1.37 +		<title><c:out value="${podnik.nazev}"/></title>
    1.38 +		<link href="http://nekurak.net/?akce=detail&amp;amp;podnik=${podnik.id}"/>
    1.39 +		<id>urn:NekurakNET:podnik:${podnik.id}</id>
    1.40 +		<updated>
    1.41 +		    <fmt:formatDate value="${podnik.datum}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    1.42 +		</updated>
    1.43 +		<summary><c:out value="${podnik.popis}"/></summary>
    1.44 +	    </entry>
    1.45 +	</c:forEach>
    1.46 +
    1.47 +
    1.48 +    </feed>
    1.49 +
    1.50 +</jsp:root>