java/nekurak.net-web/web/WEB-INF/chyby/404.jsp
changeset 42 77c8271add7d
parent 37 1b481b911614
child 74 aec1fb81580e
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/chyby/404.jsp	Wed Feb 24 21:21:23 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/chyby/404.jsp	Thu Feb 25 16:00:42 2010 +0100
     1.3 @@ -1,20 +1,16 @@
     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/xhtml+xml" isErrorPage="true"/>
    1.10 -    <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    1.11 -		doctype-root-element="html"
    1.12 -		omit-xml-declaration="false"/>
    1.13  
    1.14 -    <html xmlns="http://www.w3.org/1999/xhtml">
    1.15 -	<head>
    1.16 -	    <title>404 Stránka nenalezena</title>
    1.17 -	</head>
    1.18 -	<body>
    1.19 -	    <h1>404 Stránka nenalezena</h1>
    1.20 -	    <p>Takovou stránku tu bohužel nemáme.</p>
    1.21 -	</body>
    1.22 -    </html>
    1.23 +    <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    1.24 +
    1.25 +    <fmt:message key="chybovaStranka.404.nazev" var="nazev"/>
    1.26 +    <fmt:message key="chybovaStranka.404.popis" var="popis"/>
    1.27 +    
    1.28 +    <jsp:include page="sablona.jsp" flush="false">
    1.29 +	<jsp:param name="nazev" value="${nazev}"/>
    1.30 +	<jsp:param name="popis" value="${popis}"/>
    1.31 +    </jsp:include>
    1.32  
    1.33  </jsp:root>