java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Wed Feb 24 21:48:49 2010 +0100 (2010-02-24)
changeset 38 a2ca6c1804d1
parent 35 93d3fab81ad4
child 40 67d332d48562
permissions -rw-r--r--
Jednoduchý design.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
     3     <session-config>
     4 	<session-timeout>30</session-timeout>
     5     </session-config>
     6     <welcome-file-list>
     7 	<welcome-file>index.jsp</welcome-file>
     8     </welcome-file-list>
     9     <error-page>
    10 	<!-- Stránka nenalezena -->
    11 	<error-code>404</error-code>
    12 	<location>/WEB-INF/chyby/404.jsp</location>
    13     </error-page>
    14     <error-page>
    15 	<!-- Interní chyba serveru -->
    16 	<error-code>500</error-code>
    17 	<location>/WEB-INF/chyby/500.jsp</location>
    18     </error-page>
    19     <context-param>
    20 	<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
    21 	<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
    22 	<param-value>cs</param-value>
    23     </context-param>
    24 </web-app>