java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Thu Feb 18 15:01:37 2010 +0100 (2010-02-18)
changeset 34 f9ca0203fec5
parent 24 58aa900334e4
child 35 93d3fab81ad4
permissions -rw-r--r--
Added tag 5. díl for changeset 9f9840afa18f
     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>
     5 	    30
     6 	</session-timeout>
     7     </session-config>
     8     <welcome-file-list>
     9 	<welcome-file>index.jsp</welcome-file>
    10     </welcome-file-list>
    11     <error-page>
    12 	<!-- Stránka nenalezena -->
    13 	<error-code>404</error-code>
    14 	<location>/WEB-INF/chyby/404.jsp</location>
    15     </error-page>
    16     <error-page>
    17 	<!-- Interní chyba serveru -->
    18 	<error-code>500</error-code>
    19 	<location>/WEB-INF/chyby/500.jsp</location>
    20     </error-page>
    21     <error-page>
    22 	<!-- Můžeme nastavit i zvláštní chybové hlášky pro jednotlivé druhy chyb -->
    23 	<exception-type>java.lang.NullPointerException</exception-type>
    24 	<location>/WEB-INF/chyby/nullPointer.jsp</location>
    25     </error-page>
    26     <!-- Odkaz na DB spojení, které budeme používat
    27 	 potřebné pokud chceme používat SQL JSP značky -->
    28     <resource-ref>
    29 	<res-ref-name>jdbc/nekurak</res-ref-name>
    30 	<res-type>javax.sql.DataSource</res-type>
    31 	<res-auth>Container</res-auth>
    32     </resource-ref>
    33     <context-param>
    34 	<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
    35 	<param-value>cs</param-value>
    36     </context-param>
    37 </web-app>