JPA: persis vs. merge.
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">
4 <session-timeout>30</session-timeout>
8 <welcome-file>index.jsp</welcome-file>
12 <!-- Stránka nenalezena -->
13 <error-code>404</error-code>
14 <location>/WEB-INF/chyby/404.jsp</location>
17 <!-- Interní chyba serveru -->
18 <error-code>500</error-code>
19 <location>/WEB-INF/chyby/500.jsp</location>
23 <servlet-name>atom</servlet-name>
24 <jsp-file>/WEB-INF/atom/atom.jsp</jsp-file>
28 <servlet-name>atom</servlet-name>
29 <url-pattern>/atom/*</url-pattern>
33 <!-- Pro případ, že chybí hlavička „Accept-language“ v HTTP požadavku -->
34 <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
35 <param-value>cs</param-value>
38 <!-- <zabezpečení> -->
40 <role-name>opravneny</role-name>
43 <web-resource-collection>
44 <web-resource-name>Správa Nekuřák.net</web-resource-name>
45 <url-pattern>/sprava/*</url-pattern>
46 </web-resource-collection>
48 <role-name>opravneny</role-name>
50 </security-constraint>
52 <auth-method>FORM</auth-method>
53 <realm-name>nekurakNET</realm-name>
55 <form-login-page>/?akce=prihlaseni</form-login-page>
56 <form-error-page>/?akce=prihlaseni&chyba=ano</form-error-page>
59 <!-- </zabezpečení> -->