java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Thu Feb 25 16:00:42 2010 +0100 (2010-02-25)
changeset 42 77c8271add7d
parent 41 2c3451cc396c
child 49 9b2a597cc862
permissions -rw-r--r--
Doplnění překladů + lokalizace chybových stránek.
     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 
     7     <welcome-file-list>
     8         <welcome-file>index.jsp</welcome-file>
     9     </welcome-file-list>
    10 
    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     
    22     <context-param>
    23         <!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
    24         <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
    25         <param-value>cs</param-value>
    26     </context-param>
    27 
    28     <!--  <zabezpečení> -->
    29     <security-role>
    30         <role-name>opravneny</role-name>
    31     </security-role>
    32     <security-constraint>
    33         <web-resource-collection>
    34             <web-resource-name>Správa Nekuřák.net</web-resource-name>
    35             <url-pattern>/sprava/*</url-pattern>
    36         </web-resource-collection>
    37         <auth-constraint>
    38             <role-name>opravneny</role-name>
    39         </auth-constraint>
    40     </security-constraint>    
    41     <login-config>
    42         <auth-method>FORM</auth-method>
    43         <realm-name>nekurakNET</realm-name>
    44 	<form-login-config>
    45 	    <form-login-page>/?akce=prihlaseni</form-login-page>
    46 	    <form-error-page>/?akce=prihlaseni&amp;chyba=ano</form-error-page>
    47 	</form-login-config>
    48     </login-config>
    49     <!--  </zabezpečení> -->
    50 
    51 </web-app>