1.1 --- a/java/nekurak.net-web/web/WEB-INF/web.xml Thu Feb 25 02:41:57 2010 +0100
1.2 +++ b/java/nekurak.net-web/web/WEB-INF/web.xml Thu Feb 25 08:26:46 2010 +0100
1.3 @@ -1,24 +1,44 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 <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">
1.6 <session-config>
1.7 - <session-timeout>30</session-timeout>
1.8 + <session-timeout>
1.9 + 30
1.10 + </session-timeout>
1.11 </session-config>
1.12 <welcome-file-list>
1.13 - <welcome-file>index.jsp</welcome-file>
1.14 + <welcome-file>index.jsp</welcome-file>
1.15 </welcome-file-list>
1.16 <error-page>
1.17 - <!-- Stránka nenalezena -->
1.18 - <error-code>404</error-code>
1.19 - <location>/WEB-INF/chyby/404.jsp</location>
1.20 + <!-- Stránka nenalezena -->
1.21 + <error-code>404</error-code>
1.22 + <location>/WEB-INF/chyby/404.jsp</location>
1.23 </error-page>
1.24 <error-page>
1.25 - <!-- Interní chyba serveru -->
1.26 - <error-code>500</error-code>
1.27 - <location>/WEB-INF/chyby/500.jsp</location>
1.28 + <!-- Interní chyba serveru -->
1.29 + <error-code>500</error-code>
1.30 + <location>/WEB-INF/chyby/500.jsp</location>
1.31 </error-page>
1.32 <context-param>
1.33 - <!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
1.34 - <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
1.35 - <param-value>cs</param-value>
1.36 + <!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
1.37 + <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
1.38 + <param-value>cs</param-value>
1.39 </context-param>
1.40 + <!-- <zabezpečení> -->
1.41 + <security-role>
1.42 + <role-name>opravneny</role-name>
1.43 + </security-role>
1.44 + <security-constraint>
1.45 + <web-resource-collection>
1.46 + <web-resource-name>Správa Nekuřák.net</web-resource-name>
1.47 + <url-pattern>/sprava/*</url-pattern>
1.48 + </web-resource-collection>
1.49 + <auth-constraint>
1.50 + <role-name>opravneny</role-name>
1.51 + </auth-constraint>
1.52 + </security-constraint>
1.53 + <login-config>
1.54 + <auth-method>BASIC</auth-method>
1.55 + <realm-name>nekurakNET</realm-name>
1.56 + </login-config>
1.57 + <!-- </zabezpečení> -->
1.58 </web-app>