java/nekurak.net-web/web/WEB-INF/web.xml
changeset 12 fceba17855e9
parent 7 c2a8f0c77f77
child 19 5d93bf1c8093
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/web.xml	Wed Jan 06 20:54:40 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/web.xml	Fri Jan 08 01:54:47 2010 +0100
     1.3 @@ -8,4 +8,19 @@
     1.4      <welcome-file-list>
     1.5  	<welcome-file>index.jsp</welcome-file>
     1.6      </welcome-file-list>
     1.7 +    <error-page>
     1.8 +	<!-- Stránka nenalezena -->
     1.9 +	<error-code>404</error-code>
    1.10 +	<location>/WEB-INF/chyby/404.jsp</location>
    1.11 +    </error-page>
    1.12 +    <error-page>
    1.13 +	<!-- Interní chyba serveru -->
    1.14 +	<error-code>500</error-code>
    1.15 +	<location>/WEB-INF/chyby/500.jsp</location>
    1.16 +    </error-page>
    1.17 +    <error-page>
    1.18 +	<!-- Můžeme nastavit i zvláštní chybové hlášky pro jednotlivé druhy chyb -->
    1.19 +	<exception-type>java.lang.NullPointerException</exception-type>
    1.20 +	<location>/WEB-INF/chyby/nullPointer.jsp</location>
    1.21 +    </error-page>
    1.22  </web-app>