java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 12 Jan 2010 18:19:43 +0100
changeset 17 f12459f8b482
parent 12 fceba17855e9
child 19 5d93bf1c8093
permissions -rw-r--r--
Added tag 2. díl for changeset 50e275fcc2e3
     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 </web-app>