java/UpozorneniEmailem/web/WEB-INF/web.xml
author František Kučera <franta-hg@frantovo.cz>
Sun, 08 Mar 2009 22:23:47 +0100
changeset 8 123d3d185ad5
parent 2 43a6e33a4854
permissions -rw-r--r--
Přibalení zdrojových kódů do .war souboru
     1 <?xml version="1.0" encoding="UTF-8"?>
     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">
     3     <session-config>
     4         <session-timeout>
     5             30
     6         </session-timeout>
     7     </session-config>
     8     <welcome-file-list>
     9         <welcome-file>index.jsp</welcome-file>
    10     </welcome-file-list>
    11 
    12     <!-- Kaptcha -->
    13     <servlet>
    14         <servlet-name>Kaptcha</servlet-name>
    15         <servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class>
    16         <init-param>
    17             <param-name>kaptcha.border</param-name>
    18             <param-value>no</param-value>
    19         </init-param>
    20         <init-param>
    21             <param-name>kaptcha.textproducer.font.color</param-name>
    22             <param-value>orange</param-value>
    23         </init-param>
    24         <init-param>
    25             <param-name>kaptcha.image.height</param-name>
    26             <param-value>50</param-value>
    27         </init-param>
    28         <init-param>
    29             <param-name>kaptcha.image.width</param-name>
    30             <param-value>300</param-value>
    31         </init-param>
    32     </servlet>
    33     <servlet-mapping>
    34         <servlet-name>Kaptcha</servlet-name>
    35         <url-pattern>/protiZlymRobotum.jpg</url-pattern>
    36     </servlet-mapping>
    37     <!-- Kaptcha - konec -->
    38 </web-app>