web.xml: přechod na web-app 3.0 a přesun deklarace překladů do web.xml.
http://java.sun.com/xml/ns/javaee/
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
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"
6 xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
9 <jsp:useBean id="detail" class="cz.frantovo.nekurak.web.Detail" scope="request"/>
10 <jsp:setProperty name="detail" property="id" value="${param.podnik}"/>
12 <nk:stranka titulek="${fn:escapeXml(detail.podnik.nazev)}">
13 <h1><c:out value="${detail.podnik.nazev}" /></h1>
14 <nk:podnikZahlavi podnik="${detail.podnik}" detailPodniku="true"/>
15 <nk:podnikDetail detail="${detail}"/>
16 <nk:podnikKomentare podnik="${detail.podnik}"/>