author | František Kučera <franta-hg@frantovo.cz> |
Tue, 23 Mar 2010 09:15:48 +0100 | |
changeset 78 | 77d86ffbf55b |
parent 75 | 18ed62105526 |
child 83 | 6767606d6342 |
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@75 | 41 |
<load-on-startup>1</load-on-startup> |
franta-hg@64 | 42 |
</servlet> |
franta-hg@64 | 43 |
<!-- </definiceServletů> --> |
franta-hg@64 | 44 |
<!-- <mapováníServletů> --> |
franta-hg@49 | 45 |
<servlet-mapping> |
franta-hg@64 | 46 |
<servlet-name>fotky</servlet-name> |
franta-hg@64 | 47 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@49 | 48 |
</servlet-mapping> |
franta-hg@64 | 49 |
<servlet-mapping> |
franta-hg@64 | 50 |
<servlet-name>atom</servlet-name> |
franta-hg@64 | 51 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@64 | 52 |
</servlet-mapping> |
franta-hg@64 | 53 |
<!-- </mapováníServletů> --> |
franta-hg@33 | 54 |
<context-param> |
franta-hg@64 | 55 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@64 | 56 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@64 | 57 |
<param-value>cs</param-value> |
franta-hg@33 | 58 |
</context-param> |
franta-hg@40 | 59 |
<!-- <zabezpečení> --> |
franta-hg@40 | 60 |
<security-role> |
franta-hg@64 | 61 |
<role-name>opravneny</role-name> |
franta-hg@40 | 62 |
</security-role> |
franta-hg@40 | 63 |
<security-constraint> |
franta-hg@64 | 64 |
<web-resource-collection> |
franta-hg@64 | 65 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@64 | 66 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@64 | 67 |
</web-resource-collection> |
franta-hg@64 | 68 |
<auth-constraint> |
franta-hg@64 | 69 |
<role-name>opravneny</role-name> |
franta-hg@64 | 70 |
</auth-constraint> |
franta-hg@49 | 71 |
</security-constraint> |
franta-hg@40 | 72 |
<login-config> |
franta-hg@64 | 73 |
<auth-method>FORM</auth-method> |
franta-hg@64 | 74 |
<realm-name>nekurakNET</realm-name> |
franta-hg@64 | 75 |
<form-login-config> |
franta-hg@64 | 76 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@64 | 77 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@64 | 78 |
</form-login-config> |
franta-hg@40 | 79 |
</login-config> |
franta-hg@40 | 80 |
<!-- </zabezpečení> --> |
franta-hg@7 | 81 |
</web-app> |