Hi, 

When using the displaytag, I am having a character encoding problem
displaying a property with the value "ááá" (nor any special characters,
for that matter), which you can see here:


http://s286.photobucket.com/albums/ll86/wild_oscar/?action=view&current=Screenshot-1.png


This is a Struts 2 application. The relevant jsp code is shown bellow.
You can see in the image that I can display "ááá" correctly with an
s:property tag. The problem is only presen in the displaytag.

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display"%>
<h3>Current Dossiers</h3>
<s:iterator value="dossiers" var="d">
<s:property value="%{#d.procedureNumber}"/>
</s:iterator>
<div class="conteudo">
        <display:table class="userTable" name="dossiers" pagesize="10"
id="current" requestURI="" sort="list" defaultsort="1">
                
                <display:column class="table" headerClass="lista" title="ID"
sortable="true" property="id" href="" paramId="id" />
                <display:column class="table" headerClass="lista" 
title="Procedure
Number" sortable="true" >${current.procedureNumber}</display:column>
                <display:column class="table" headerClass="lista" 
title="Procedure
Number" property="procedureNumber" ></display:column>
        </display:table>



I have tried setting the locale.resolver property in the
displaytag.properties file, to a class as described in
http://blog.richeton.com/2009/08/12/displaytag-struts-2-localization/ ,
but it didn't help.

Does anyone know how to display the characters correctly?

Thank you!

Miguel
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to