Nastavení výchozího kódování parametrů, abychom nemuseli trapně hackovat pomocí skriptletů:
<jsp:scriptlet>
request.setCharacterEncoding("UTF-8");
</jsp:scriptlet>
1.1 --- a/java/nekurak.net-web/web/WEB-INF/sun-web.xml Wed Jan 06 19:25:40 2010 +0100
1.2 +++ b/java/nekurak.net-web/web/WEB-INF/sun-web.xml Wed Jan 06 20:54:40 2010 +0100
1.3 @@ -1,11 +1,12 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 <!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">
1.6 <sun-web-app error-url="">
1.7 - <context-root>/nekurak.net-web</context-root>
1.8 - <class-loader delegate="true"/>
1.9 - <jsp-config>
1.10 - <property name="keepgenerated" value="true">
1.11 - <description>Keep a copy of the generated servlet class' java code.</description>
1.12 - </property>
1.13 - </jsp-config>
1.14 + <context-root>/nekurak.net-web</context-root>
1.15 + <class-loader delegate="true"/>
1.16 + <parameter-encoding default-charset="UTF-8" />
1.17 + <jsp-config>
1.18 + <property name="keepgenerated" value="true">
1.19 + <description>Keep a copy of the generated servlet class' java code.</description>
1.20 + </property>
1.21 + </jsp-config>
1.22 </sun-web-app>