java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 09 Mar 2010 20:26:41 +0100
changeset 59 4330f48457bb
parent 49 9b2a597cc862
child 64 a2e6f8fc4c34
permissions -rw-r--r--
Added tag 8. díl for changeset e019dbc42723
     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     <servlet>
    23 	<servlet-name>atom</servlet-name>
    24 	<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file>
    25     </servlet>
    26 
    27     <servlet-mapping>
    28 	<servlet-name>atom</servlet-name>
    29 	<url-pattern>/atom/*</url-pattern>
    30     </servlet-mapping>
    31 
    32     <context-param>
    33 	<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
    34 	<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
    35 	<param-value>cs</param-value>
    36     </context-param>
    37 
    38     <!--  <zabezpečení> -->
    39     <security-role>
    40 	<role-name>opravneny</role-name>
    41     </security-role>
    42     <security-constraint>
    43 	<web-resource-collection>
    44 	    <web-resource-name>Správa Nekuřák.net</web-resource-name>
    45 	    <url-pattern>/sprava/*</url-pattern>
    46 	</web-resource-collection>
    47 	<auth-constraint>
    48 	    <role-name>opravneny</role-name>
    49 	</auth-constraint>
    50     </security-constraint>
    51     <login-config>
    52 	<auth-method>FORM</auth-method>
    53 	<realm-name>nekurakNET</realm-name>
    54 	<form-login-config>
    55 	    <form-login-page>/?akce=prihlaseni</form-login-page>
    56 	    <form-error-page>/?akce=prihlaseni&amp;chyba=ano</form-error-page>
    57 	</form-login-config>
    58     </login-config>
    59     <!--  </zabezpečení> -->
    60 
    61 </web-app>