java/nekurak.net-web/web/WEB-INF/atom/atom.jsp
changeset 145 0efefbf5f8b6
parent 49 9b2a597cc862
child 179 2ed9f3231a28
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/atom/atom.jsp	Sat Jun 19 14:37:11 2010 +0200
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/atom/atom.jsp	Sun Jun 20 14:46:47 2010 +0200
     1.3 @@ -1,47 +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 +		  xmlns:c="http://java.sun.com/jsp/jstl/core"
    1.11 +		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    1.12 +		  version="2.0">
    1.13 +	<jsp:directive.page contentType="application/atom+xml"/>
    1.14  
    1.15 -    <!-- <lokalizace> -->
    1.16 -    <c:if test="${param.jazyk != null}">
    1.17 -	<fmt:setLocale value="${param.jazyk}" scope="session"/>
    1.18 -    </c:if>
    1.19 -    <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    1.20 -    <!-- </lokalizace> -->
    1.21 +	<!-- <lokalizace> -->
    1.22 +	<c:if test="${param.jazyk != null}">
    1.23 +		<fmt:setLocale value="${param.jazyk}" scope="session"/>
    1.24 +	</c:if>
    1.25 +	<fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    1.26 +	<!-- </lokalizace> -->
    1.27  
    1.28 -    <jsp:useBean id="atom" class="cz.frantovo.nekurak.web.Atom" scope="request"/>
    1.29 +	<jsp:useBean id="atom" class="cz.frantovo.nekurak.web.Atom" scope="request"/>
    1.30  
    1.31 -    <feed xmlns="http://www.w3.org/2005/Atom">
    1.32 -	<title><fmt:message key="nazev"/></title>
    1.33 -	<subtitle><fmt:message key="popis"/></subtitle>
    1.34 -	<link href="http://nekurak.net/atom/" rel="self"/>
    1.35 -	<link href="http://nekurak.net/"/>
    1.36 -	<updated>
    1.37 -	    <fmt:formatDate value="${atom.datumAktualizace}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    1.38 -	</updated>
    1.39 -	<author>
    1.40 -	    <name>František Kučera</name>
    1.41 -	    <email>franta_nechci_spam@frantovo.cz</email>
    1.42 -	</author>
    1.43 -	<id>urn:uuid:0663f9ab-e289-47b3-893f-5bafcf8dc110</id>
    1.44 +	<feed xmlns="http://www.w3.org/2005/Atom">
    1.45 +		<title><fmt:message key="nazev"/></title>
    1.46 +		<subtitle><fmt:message key="popis"/></subtitle>
    1.47 +		<link href="http://nekurak.net/atom/" rel="self"/>
    1.48 +		<link href="http://nekurak.net/"/>
    1.49 +		<updated>
    1.50 +			<fmt:formatDate value="${atom.datumAktualizace}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    1.51 +		</updated>
    1.52 +		<author>
    1.53 +			<name>František Kučera</name>
    1.54 +			<email>franta_nechci_spam@frantovo.cz</email>
    1.55 +		</author>
    1.56 +		<id>urn:uuid:0663f9ab-e289-47b3-893f-5bafcf8dc110</id>
    1.57  
    1.58  
    1.59 -	<c:forEach var="podnik" items="${atom.podniky}">
    1.60 -	    <entry>
    1.61 -		<title><c:out value="${podnik.nazev}"/></title>
    1.62 -		<link href="http://nekurak.net/?akce=detail&amp;amp;podnik=${podnik.id}"/>
    1.63 -		<id>urn:NekurakNET:podnik:${podnik.id}</id>
    1.64 -		<updated>
    1.65 -		    <fmt:formatDate value="${podnik.datum}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    1.66 -		</updated>
    1.67 -		<summary><c:out value="${podnik.popis}"/></summary>
    1.68 -	    </entry>
    1.69 -	</c:forEach>
    1.70 +		<c:forEach var="podnik" items="${atom.podniky}">
    1.71 +			<entry>
    1.72 +				<title><c:out value="${podnik.nazev}"/></title>
    1.73 +				<link href="http://nekurak.net/?akce=detail&amp;amp;podnik=${podnik.id}"/>
    1.74 +				<id>urn:NekurakNET:podnik:${podnik.id}</id>
    1.75 +				<updated>
    1.76 +					<fmt:formatDate value="${podnik.datum}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
    1.77 +				</updated>
    1.78 +				<summary><c:out value="${podnik.popis}"/></summary>
    1.79 +			</entry>
    1.80 +		</c:forEach>
    1.81  
    1.82  
    1.83 -    </feed>
    1.84 +	</feed>
    1.85  
    1.86  </jsp:root>