author | František Kučera <franta-hg@frantovo.cz> |
Sun Mar 14 01:37:40 2010 +0100 (2010-03-14) | |
changeset 68 | df5aedafb826 |
parent 49 | 9b2a597cc862 |
child 69 | 4964cf581166 |
permissions | -rw-r--r-- |
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@64 | 4 |
<session-timeout>30</session-timeout> |
franta-hg@0 | 5 |
</session-config> |
franta-hg@0 | 6 |
<welcome-file-list> |
franta-hg@64 | 7 |
<welcome-file>index.jsp</welcome-file> |
franta-hg@7 | 8 |
</welcome-file-list> |
franta-hg@64 | 9 |
<!-- <chybovéStránky> --> |
franta-hg@12 | 10 |
<error-page> |
franta-hg@64 | 11 |
<!-- Stránka nenalezena --> |
franta-hg@64 | 12 |
<error-code>404</error-code> |
franta-hg@64 | 13 |
<location>/WEB-INF/chyby/404.jsp</location> |
franta-hg@12 | 14 |
</error-page> |
franta-hg@12 | 15 |
<error-page> |
franta-hg@64 | 16 |
<!-- Interní chyba serveru --> |
franta-hg@64 | 17 |
<error-code>500</error-code> |
franta-hg@64 | 18 |
<location>/WEB-INF/chyby/500.jsp</location> |
franta-hg@12 | 19 |
</error-page> |
franta-hg@64 | 20 |
<!-- </chybovéStránky> --> |
franta-hg@64 | 21 |
<!-- <definiceServletů> --> |
franta-hg@49 | 22 |
<servlet> |
franta-hg@64 | 23 |
<servlet-name>atom</servlet-name> |
franta-hg@64 | 24 |
<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file> |
franta-hg@49 | 25 |
</servlet> |
franta-hg@64 | 26 |
<servlet> |
franta-hg@64 | 27 |
<description> |
franta-hg@64 | 28 |
Servlet zpřístupňující fotky umístěné ve zvláštním adresáři |
franta-hg@64 | 29 |
(data oddělená od aplikace). |
franta-hg@64 | 30 |
</description> |
franta-hg@64 | 31 |
<servlet-name>fotky</servlet-name> |
franta-hg@64 | 32 |
<servlet-class>cz.frantovo.nekurak.servlet.Fotky</servlet-class> |
franta-hg@64 | 33 |
<init-param> |
franta-hg@64 | 34 |
<description> |
franta-hg@64 | 35 |
Adresář na disku, který obsahuje fotky podniků. |
franta-hg@64 | 36 |
Musí existovat při startu aplikace. |
franta-hg@64 | 37 |
</description> |
franta-hg@64 | 38 |
<param-name>adresar</param-name> |
franta-hg@64 | 39 |
<param-value>/var/www/nekurak.net/fotky</param-value> |
franta-hg@64 | 40 |
</init-param> |
franta-hg@64 | 41 |
</servlet> |
franta-hg@64 | 42 |
<!-- </definiceServletů> --> |
franta-hg@64 | 43 |
<!-- <mapováníServletů> --> |
franta-hg@49 | 44 |
<servlet-mapping> |
franta-hg@64 | 45 |
<servlet-name>fotky</servlet-name> |
franta-hg@64 | 46 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@49 | 47 |
</servlet-mapping> |
franta-hg@64 | 48 |
<servlet-mapping> |
franta-hg@64 | 49 |
<servlet-name>atom</servlet-name> |
franta-hg@64 | 50 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@64 | 51 |
</servlet-mapping> |
franta-hg@64 | 52 |
<!-- </mapováníServletů> --> |
franta-hg@33 | 53 |
<context-param> |
franta-hg@64 | 54 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@64 | 55 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@64 | 56 |
<param-value>cs</param-value> |
franta-hg@33 | 57 |
</context-param> |
franta-hg@40 | 58 |
<!-- <zabezpečení> --> |
franta-hg@40 | 59 |
<security-role> |
franta-hg@64 | 60 |
<role-name>opravneny</role-name> |
franta-hg@40 | 61 |
</security-role> |
franta-hg@40 | 62 |
<security-constraint> |
franta-hg@64 | 63 |
<web-resource-collection> |
franta-hg@64 | 64 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@64 | 65 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@64 | 66 |
</web-resource-collection> |
franta-hg@64 | 67 |
<auth-constraint> |
franta-hg@64 | 68 |
<role-name>opravneny</role-name> |
franta-hg@64 | 69 |
</auth-constraint> |
franta-hg@49 | 70 |
</security-constraint> |
franta-hg@40 | 71 |
<login-config> |
franta-hg@64 | 72 |
<auth-method>FORM</auth-method> |
franta-hg@64 | 73 |
<realm-name>nekurakNET</realm-name> |
franta-hg@64 | 74 |
<form-login-config> |
franta-hg@64 | 75 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@64 | 76 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@64 | 77 |
</form-login-config> |
franta-hg@40 | 78 |
</login-config> |
franta-hg@40 | 79 |
<!-- </zabezpečení> --> |
franta-hg@7 | 80 |
</web-app> |