java/nekurak.net-web/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Thu Feb 25 08:26:46 2010 +0100 (2010-02-25)
changeset 40 67d332d48562
parent 37 1b481b911614
child 41 2c3451cc396c
permissions -rw-r--r--
Zakládání podniků + HTTP autentizace.
franta-hg@0
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@0
     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">
franta-hg@0
     3
    <session-config>
franta-hg@40
     4
        <session-timeout>
franta-hg@40
     5
	    30
franta-hg@40
     6
	</session-timeout>
franta-hg@0
     7
    </session-config>
franta-hg@0
     8
    <welcome-file-list>
franta-hg@40
     9
        <welcome-file>index.jsp</welcome-file>
franta-hg@7
    10
    </welcome-file-list>
franta-hg@12
    11
    <error-page>
franta-hg@40
    12
        <!-- Stránka nenalezena -->
franta-hg@40
    13
        <error-code>404</error-code>
franta-hg@40
    14
        <location>/WEB-INF/chyby/404.jsp</location>
franta-hg@12
    15
    </error-page>
franta-hg@12
    16
    <error-page>
franta-hg@40
    17
        <!-- Interní chyba serveru -->
franta-hg@40
    18
        <error-code>500</error-code>
franta-hg@40
    19
        <location>/WEB-INF/chyby/500.jsp</location>
franta-hg@12
    20
    </error-page>
franta-hg@33
    21
    <context-param>
franta-hg@40
    22
        <!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
franta-hg@40
    23
        <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
franta-hg@40
    24
        <param-value>cs</param-value>
franta-hg@33
    25
    </context-param>
franta-hg@40
    26
    <!--  <zabezpečení> -->
franta-hg@40
    27
    <security-role>
franta-hg@40
    28
        <role-name>opravneny</role-name>
franta-hg@40
    29
    </security-role>
franta-hg@40
    30
    <security-constraint>
franta-hg@40
    31
        <web-resource-collection>
franta-hg@40
    32
            <web-resource-name>Správa Nekuřák.net</web-resource-name>
franta-hg@40
    33
            <url-pattern>/sprava/*</url-pattern>
franta-hg@40
    34
        </web-resource-collection>
franta-hg@40
    35
        <auth-constraint>
franta-hg@40
    36
            <role-name>opravneny</role-name>
franta-hg@40
    37
        </auth-constraint>
franta-hg@40
    38
    </security-constraint>    
franta-hg@40
    39
    <login-config>
franta-hg@40
    40
        <auth-method>BASIC</auth-method>
franta-hg@40
    41
        <realm-name>nekurakNET</realm-name>
franta-hg@40
    42
    </login-config>
franta-hg@40
    43
    <!--  </zabezpečení> -->
franta-hg@7
    44
</web-app>