struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Encoding in <s:property>
Date Thu, 14 Oct 2010 23:06:13 GMT
On Thu, Oct 14, 2010 at 5:40 PM, Antonio Sánchez wrote:

> My <s:property value="myvalue" /> tag is not encoding Spanish
> characters. In this case "myvalue" is a literal string from java source.
>
> String myValue = "EspaÑa";
>
> I have: <%@page contentType="text/xml; charset=UTF-8"
> pageEncoding="UTF-8"%>
>
> My local http client outputs: "Espa&Ntilde;a".
>
> What am I doing wrong?
>

Escaping HTML.

http://struts.apache.org/2.x/docs/property.html

Dave

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message