java/nekurak.net-web/web/WEB-INF/glassfish-web.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 23 Apr 2013 21:43:37 +0200
changeset 204 bebec432330a
parent 186 b0f7d9ab4a07
permissions -rw-r--r--
oprava chatu, tabulátory
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
     3 <glassfish-web-app error-url="">
     4 	<context-root>/nekurak.net-web</context-root>
     5 	<security-role-mapping>
     6 		<!-- TODO: opravit role vs. skupiny (tabulka v DB) -->
     7 		<role-name>opravneny</role-name>
     8 		<group-name>bezny</group-name>
     9 	</security-role-mapping>
    10 	<session-config>
    11 		<session-properties>
    12 			<!--
    13 				Aby se nám do URL nedostávalo ;jsessionid=…
    14 				ve výchozím stavu jsou obě true,
    15 				enableCookies nemusíme uvádět,
    16 				skrze enableURLRewriting zakážeme vkládání ID do URL,
    17 				uživatelům bez cookies nebudou fungovat relace.
    18 				Viz http://www.i-coding.de/www/en/glassfish/configuration/session-id.html
    19 			-->
    20 			<property name="enableCookies" value="true"/>
    21 			<property name="enableURLRewriting" value="false"/>
    22 		</session-properties>
    23 	</session-config>
    24 	<class-loader delegate="true"/>
    25 	<jsp-config>
    26 		<property name="keepgenerated" value="true">
    27 			<description>Keep a copy of the generated servlet class' java code.</description>
    28 		</property>
    29 	</jsp-config>	
    30 	<parameter-encoding default-charset="UTF-8"/>
    31 </glassfish-web-app>