struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <>
Subject RE: Struts-Tiles causes charset problem!!!
Date Thu, 06 Mar 2003 10:59:05 GMT
Sorry, you can't display Chinese until the user has clicked on the flag of Belgium. (j/k) ;-)


-----Original Message-----
From: Micael []
Sent: Thursday, 6 March 2003 17:30
To: Struts Users Mailing List
Subject: RE: Localisation


At 08:02 PM 3/5/03 +0800, you wrote:
>So... if they click on say , the flag for Belgium, what language will they
>-----Original Message-----
>From: James []
>Sent: Thursday, 6 March 2003 03:12
>Subject: Localisation
>I have a LocaleActionClass that sets the locale according to which wee flag
>the user clicks,


-----Original Message-----
From: Eric Chow []
Sent: Thursday, 6 March 2003 18:41
To: Struts Users Mailing List
Subject: Struts-Tiles causes charset problem!!!


I want to display some Chinese in JSP(Customer Tag).

If my JSP as following: (showChineseContent.jsp)
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="/WEB-INF/tld/test.tld" prefix="test" %>
<%@ taglib uri="/WEB-INF/tld/share.tld" prefix="share" %>

 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
 <title>Chinese Form</title>
 <link rel="stylesheet" href="css/myapp.css">

<table border=0 width=100% align=center cellspacing=2 cellpadding=2>
  <td><test:chineseFormInfo property="messageID"/></td>
  <td><test:chineseFormInfo property="name"/></td>

The above JSP works very well, I can retrieve those Chinese from database and display them

After I change it to use Tiles as a template as following:

<definition name="showChineseLayout" path="template.jsp">
  <put name="title"  value="Test Chinese" />
  <put name="content" value="showChineseContent.jsp" />

in my showChinese.jsp
<tiles:insert definition="showChineseLayout" flush="true" />

After changed to tiles, everything is wrong, all the Chinese displayed as some QUESTION-MARKS

Is there any problem in Tiles?  And, I tried to use <jsp:include page="showChineseContent.jsp"
flush="true"/> instead of Tiles, it also not worked.

Any idea on it?

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message