java/nekurak.net-web/web/WEB-INF/sun-web.xml
author František Kučera <franta-hg@frantovo.cz>
Sun Jan 09 23:34:16 2011 +0100 (2011-01-09)
changeset 161 5421bbe5973b
parent 145 0efefbf5f8b6
permissions -rw-r--r--
Parametr jsessionid by se nikdy neměl dostat do URL.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
     3 <sun-web-app error-url="">
     4 	<context-root>/nekurak.net-web</context-root>
     5 	<class-loader delegate="true"/>
     6 	<parameter-encoding default-charset="UTF-8"/>
     7 	<session-config>
     8 		<session-properties>
     9 			<!--
    10 				Aby se nám do URL nedostávalo ;jsessionid=…
    11 				ve výchozím stavu jsou obě true,
    12 				enableCookies nemusíme uvádět,
    13 				skrze enableURLRewriting zakážeme vkládání ID do URL,
    14 				uživatelům bez cookies nebudou fungovat relace.
    15 				Viz http://www.i-coding.de/www/en/glassfish/configuration/session-id.html
    16 			-->
    17 			<property name="enableCookies" value="true"/>
    18 			<property name="enableURLRewriting" value="false"/>
    19 		</session-properties>
    20 	</session-config>
    21 	<jsp-config>
    22 		<property name="keepgenerated" value="true">
    23 			<description>Keep a copy of the generated servlet class' java code.</description>
    24 		</property>
    25 	</jsp-config>
    26 	<security-role-mapping>
    27 		<!-- TODO: opravit role vs. skupiny (tabulka v DB) -->
    28 		<role-name>opravneny</role-name>
    29 		<group-name>bezny</group-name>
    30 	</security-role-mapping>
    31 </sun-web-app>