java/nekurak.net-web/web/WEB-INF/sun-web.xml
author František Kučera <franta-hg@frantovo.cz>
Wed, 06 Jan 2010 20:54:40 +0100
changeset 11 0412c4dd489d
parent 0 b85f351aa5e5
child 19 5d93bf1c8093
permissions -rw-r--r--
Nastavení výchozího kódování parametrů, abychom nemuseli trapně hackovat pomocí skriptletů:
<jsp:scriptlet>
request.setCharacterEncoding("UTF-8");
</jsp:scriptlet>
     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     <jsp-config>
     8 	<property name="keepgenerated" value="true">
     9 	    <description>Keep a copy of the generated servlet class' java code.</description>
    10 	</property>
    11     </jsp-config>
    12 </sun-web-app>