java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Sun Feb 21 12:18:32 2010 +0100 (2010-02-21)
changeset 35 93d3fab81ad4
parent 33 9f9840afa18f
child 37 1b481b911614
permissions -rw-r--r--
Lokalizace: české skloňování.
franta-hg@0
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@0
     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">
franta-hg@0
     3
    <session-config>
franta-hg@7
     4
	<session-timeout>
franta-hg@7
     5
	    30
franta-hg@7
     6
	</session-timeout>
franta-hg@0
     7
    </session-config>
franta-hg@0
     8
    <welcome-file-list>
franta-hg@7
     9
	<welcome-file>index.jsp</welcome-file>
franta-hg@7
    10
    </welcome-file-list>
franta-hg@12
    11
    <error-page>
franta-hg@12
    12
	<!-- Stránka nenalezena -->
franta-hg@12
    13
	<error-code>404</error-code>
franta-hg@12
    14
	<location>/WEB-INF/chyby/404.jsp</location>
franta-hg@12
    15
    </error-page>
franta-hg@12
    16
    <error-page>
franta-hg@12
    17
	<!-- Interní chyba serveru -->
franta-hg@12
    18
	<error-code>500</error-code>
franta-hg@12
    19
	<location>/WEB-INF/chyby/500.jsp</location>
franta-hg@12
    20
    </error-page>
franta-hg@12
    21
    <error-page>
franta-hg@12
    22
	<!-- Můžeme nastavit i zvláštní chybové hlášky pro jednotlivé druhy chyb -->
franta-hg@12
    23
	<exception-type>java.lang.NullPointerException</exception-type>
franta-hg@12
    24
	<location>/WEB-INF/chyby/nullPointer.jsp</location>
franta-hg@12
    25
    </error-page>
franta-hg@19
    26
    <resource-ref>
franta-hg@35
    27
	<!-- Odkaz na DB spojení, které budeme používat
franta-hg@35
    28
	     potřebné pokud chceme používat SQL JSP značky -->
franta-hg@19
    29
	<res-ref-name>jdbc/nekurak</res-ref-name>
franta-hg@19
    30
	<res-type>javax.sql.DataSource</res-type>
franta-hg@19
    31
	<res-auth>Container</res-auth>
franta-hg@19
    32
    </resource-ref>
franta-hg@33
    33
    <context-param>
franta-hg@35
    34
	<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
franta-hg@33
    35
	<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
franta-hg@33
    36
	<param-value>cs</param-value>
franta-hg@33
    37
    </context-param>
franta-hg@7
    38
</web-app>