Hi Björn,
I think it is general problem with naming attributes in local languages.
Best practice for Java (and other programming languages) is use only
some characters (that means a - z, numbers and underscore).
Why didnt use for attribute "stra*ß*e" its equivalent like "strasse"? It
saves you much troubles :).
Note: Values are encoded properly because they are values and respect
your local settings.
Best regards,
Michal
Hi group,
I am having some trouble with the textfield tag. We have java beans that use
german umlauts as well as the letter 'ß' in some property names. To set the
property in a from we use the textfield tag. Below is a snippet:
<tr>
<td>Straße</td>
<td><s:textfield name="location.straße" label="Straße"/></td>
</tr>
Problem is the rendered html page escapes the name attribute, which result in a
null value for the property straße. Same goes for all properties that use umlauts.
ö becomesö and so on...
<tr>
<td>Straße</td>
<td><input type="text" name="location.straße"
id="LocationAction_save_location_straße"></input></td>
</tr>
However we can enter umlauts in a input field and have the value properly
encoded in the property of the bean.
<tr>
<td>Ort</td>
<td><s:textfield name="location.ort" label="Ort"/></td>
</tr>
If we enter 'München' in this input field, we actually recieve 'München' on the
server.
We use struts2 2.1.8.1 and the javatemplates-plugin. Tomcat URIEncoding is set
to UTF-8. Every jsp is encoded with UTF-8 and the headers are properly set.
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
Any ideas?
Björn
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org