java/nekurak.net-web/web/WEB-INF/atom/atom.jsp
author František Kučera <franta-hg@frantovo.cz>
Thu, 18 Mar 2010 14:22:16 +0100
changeset 73 34c7eb5f2fae
parent 49 9b2a597cc862
child 145 0efefbf5f8b6
permissions -rw-r--r--
Přesun XHTML šablony do značky <nk:stranka/>
→ každá stránka teď může mít vlastní titulek (v html/head).
franta-hg@49
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@49
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@49
     3
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@49
     4
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@49
     5
	  version="2.0">
franta-hg@49
     6
    <jsp:directive.page contentType="application/atom+xml"/>
franta-hg@49
     7
franta-hg@49
     8
    <!-- <lokalizace> -->
franta-hg@49
     9
    <c:if test="${param.jazyk != null}">
franta-hg@49
    10
	<fmt:setLocale value="${param.jazyk}" scope="session"/>
franta-hg@49
    11
    </c:if>
franta-hg@49
    12
    <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
franta-hg@49
    13
    <!-- </lokalizace> -->
franta-hg@49
    14
franta-hg@49
    15
    <jsp:useBean id="atom" class="cz.frantovo.nekurak.web.Atom" scope="request"/>
franta-hg@49
    16
franta-hg@49
    17
    <feed xmlns="http://www.w3.org/2005/Atom">
franta-hg@49
    18
	<title><fmt:message key="nazev"/></title>
franta-hg@49
    19
	<subtitle><fmt:message key="popis"/></subtitle>
franta-hg@49
    20
	<link href="http://nekurak.net/atom/" rel="self"/>
franta-hg@49
    21
	<link href="http://nekurak.net/"/>
franta-hg@49
    22
	<updated>
franta-hg@49
    23
	    <fmt:formatDate value="${atom.datumAktualizace}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
franta-hg@49
    24
	</updated>
franta-hg@49
    25
	<author>
franta-hg@49
    26
	    <name>František Kučera</name>
franta-hg@49
    27
	    <email>franta_nechci_spam@frantovo.cz</email>
franta-hg@49
    28
	</author>
franta-hg@49
    29
	<id>urn:uuid:0663f9ab-e289-47b3-893f-5bafcf8dc110</id>
franta-hg@49
    30
franta-hg@49
    31
franta-hg@49
    32
	<c:forEach var="podnik" items="${atom.podniky}">
franta-hg@49
    33
	    <entry>
franta-hg@49
    34
		<title><c:out value="${podnik.nazev}"/></title>
franta-hg@49
    35
		<link href="http://nekurak.net/?akce=detail&amp;amp;podnik=${podnik.id}"/>
franta-hg@49
    36
		<id>urn:NekurakNET:podnik:${podnik.id}</id>
franta-hg@49
    37
		<updated>
franta-hg@49
    38
		    <fmt:formatDate value="${podnik.datum}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
franta-hg@49
    39
		</updated>
franta-hg@49
    40
		<summary><c:out value="${podnik.popis}"/></summary>
franta-hg@49
    41
	    </entry>
franta-hg@49
    42
	</c:forEach>
franta-hg@49
    43
franta-hg@49
    44
franta-hg@49
    45
    </feed>
franta-hg@49
    46
franta-hg@49
    47
</jsp:root>