author | František Kučera <franta-hg@frantovo.cz> |
Tue Apr 27 16:13:36 2010 +0200 (2010-04-27) | |
changeset 107 | e8371105fcc8 |
parent 75 | 18ed62105526 |
child 110 | c2590a59a02a |
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@83 | 4 |
<session-timeout>30</session-timeout> |
franta-hg@0 | 5 |
</session-config> |
franta-hg@0 | 6 |
<welcome-file-list> |
franta-hg@83 | 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@83 | 11 |
<!-- Stránka nenalezena --> |
franta-hg@83 | 12 |
<error-code>404</error-code> |
franta-hg@83 | 13 |
<location>/WEB-INF/chyby/404.jsp</location> |
franta-hg@12 | 14 |
</error-page> |
franta-hg@12 | 15 |
<error-page> |
franta-hg@83 | 16 |
<!-- Interní chyba serveru --> |
franta-hg@83 | 17 |
<error-code>500</error-code> |
franta-hg@83 | 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@83 | 23 |
<servlet-name>atom</servlet-name> |
franta-hg@83 | 24 |
<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file> |
franta-hg@49 | 25 |
</servlet> |
franta-hg@64 | 26 |
<servlet> |
franta-hg@83 | 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@83 | 31 |
<servlet-name>fotky</servlet-name> |
franta-hg@83 | 32 |
<servlet-class>cz.frantovo.nekurak.servlet.Fotky</servlet-class> |
franta-hg@83 | 33 |
<init-param> |
franta-hg@83 | 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@83 | 38 |
<param-name>adresar</param-name> |
franta-hg@83 | 39 |
<param-value>/var/www/nekurak.net/fotky</param-value> |
franta-hg@83 | 40 |
</init-param> |
franta-hg@83 | 41 |
<load-on-startup>1</load-on-startup> |
franta-hg@83 | 42 |
</servlet> |
franta-hg@83 | 43 |
<servlet> |
franta-hg@83 | 44 |
<servlet-name>Kaptcha</servlet-name> |
franta-hg@83 | 45 |
<servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> |
franta-hg@64 | 46 |
</servlet> |
franta-hg@64 | 47 |
<!-- </definiceServletů> --> |
franta-hg@64 | 48 |
<!-- <mapováníServletů> --> |
franta-hg@49 | 49 |
<servlet-mapping> |
franta-hg@83 | 50 |
<servlet-name>fotky</servlet-name> |
franta-hg@83 | 51 |
<url-pattern>/fotky/*</url-pattern> |
franta-hg@49 | 52 |
</servlet-mapping> |
franta-hg@64 | 53 |
<servlet-mapping> |
franta-hg@83 | 54 |
<servlet-name>atom</servlet-name> |
franta-hg@83 | 55 |
<url-pattern>/atom/*</url-pattern> |
franta-hg@83 | 56 |
</servlet-mapping> |
franta-hg@83 | 57 |
<servlet-mapping> |
franta-hg@83 | 58 |
<servlet-name>Kaptcha</servlet-name> |
franta-hg@83 | 59 |
<url-pattern>/kaptcha.jpg</url-pattern> |
franta-hg@64 | 60 |
</servlet-mapping> |
franta-hg@64 | 61 |
<!-- </mapováníServletů> --> |
franta-hg@33 | 62 |
<context-param> |
franta-hg@83 | 63 |
<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku --> |
franta-hg@83 | 64 |
<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> |
franta-hg@83 | 65 |
<param-value>cs</param-value> |
franta-hg@33 | 66 |
</context-param> |
franta-hg@40 | 67 |
<!-- <zabezpečení> --> |
franta-hg@40 | 68 |
<security-role> |
franta-hg@83 | 69 |
<role-name>opravneny</role-name> |
franta-hg@40 | 70 |
</security-role> |
franta-hg@40 | 71 |
<security-constraint> |
franta-hg@83 | 72 |
<web-resource-collection> |
franta-hg@83 | 73 |
<web-resource-name>Správa Nekuřák.net</web-resource-name> |
franta-hg@83 | 74 |
<url-pattern>/sprava/*</url-pattern> |
franta-hg@83 | 75 |
</web-resource-collection> |
franta-hg@83 | 76 |
<auth-constraint> |
franta-hg@83 | 77 |
<role-name>opravneny</role-name> |
franta-hg@83 | 78 |
</auth-constraint> |
franta-hg@49 | 79 |
</security-constraint> |
franta-hg@40 | 80 |
<login-config> |
franta-hg@83 | 81 |
<auth-method>FORM</auth-method> |
franta-hg@83 | 82 |
<realm-name>nekurakNET</realm-name> |
franta-hg@83 | 83 |
<form-login-config> |
franta-hg@83 | 84 |
<form-login-page>/?akce=prihlaseni</form-login-page> |
franta-hg@83 | 85 |
<form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page> |
franta-hg@83 | 86 |
</form-login-config> |
franta-hg@40 | 87 |
</login-config> |
franta-hg@40 | 88 |
<!-- </zabezpečení> --> |
franta-hg@7 | 89 |
</web-app> |