java/nekurak.net-web/web/WEB-INF/web.xml
changeset 53 d76be0124c40
parent 42 77c8271add7d
child 64 a2e6f8fc4c34
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/web.xml	Thu Feb 25 16:00:42 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/web.xml	Thu Mar 04 22:42:23 2010 +0100
     1.3 @@ -1,46 +1,56 @@
     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>30</session-timeout>
     1.9      </session-config>
    1.10  
    1.11      <welcome-file-list>
    1.12 -        <welcome-file>index.jsp</welcome-file>
    1.13 +	<welcome-file>index.jsp</welcome-file>
    1.14      </welcome-file-list>
    1.15  
    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 -    
    1.33 +
    1.34 +    <servlet>
    1.35 +	<servlet-name>atom</servlet-name>
    1.36 +	<jsp-file>/WEB-INF/atom/atom.jsp</jsp-file>
    1.37 +    </servlet>
    1.38 +
    1.39 +    <servlet-mapping>
    1.40 +	<servlet-name>atom</servlet-name>
    1.41 +	<url-pattern>/atom/*</url-pattern>
    1.42 +    </servlet-mapping>
    1.43 +
    1.44      <context-param>
    1.45 -        <!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
    1.46 -        <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
    1.47 -        <param-value>cs</param-value>
    1.48 +	<!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
    1.49 +	<param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
    1.50 +	<param-value>cs</param-value>
    1.51      </context-param>
    1.52  
    1.53      <!--  <zabezpečení> -->
    1.54      <security-role>
    1.55 -        <role-name>opravneny</role-name>
    1.56 +	<role-name>opravneny</role-name>
    1.57      </security-role>
    1.58      <security-constraint>
    1.59 -        <web-resource-collection>
    1.60 -            <web-resource-name>Správa Nekuřák.net</web-resource-name>
    1.61 -            <url-pattern>/sprava/*</url-pattern>
    1.62 -        </web-resource-collection>
    1.63 -        <auth-constraint>
    1.64 -            <role-name>opravneny</role-name>
    1.65 -        </auth-constraint>
    1.66 -    </security-constraint>    
    1.67 +	<web-resource-collection>
    1.68 +	    <web-resource-name>Správa Nekuřák.net</web-resource-name>
    1.69 +	    <url-pattern>/sprava/*</url-pattern>
    1.70 +	</web-resource-collection>
    1.71 +	<auth-constraint>
    1.72 +	    <role-name>opravneny</role-name>
    1.73 +	</auth-constraint>
    1.74 +    </security-constraint>
    1.75      <login-config>
    1.76 -        <auth-method>FORM</auth-method>
    1.77 -        <realm-name>nekurakNET</realm-name>
    1.78 +	<auth-method>FORM</auth-method>
    1.79 +	<realm-name>nekurakNET</realm-name>
    1.80  	<form-login-config>
    1.81  	    <form-login-page>/?akce=prihlaseni</form-login-page>
    1.82  	    <form-error-page>/?akce=prihlaseni&amp;chyba=ano</form-error-page>