Re: Struts-Tiles causes charset problem!!!
So you have a encoding type problem on the server side. This is not related to Tiles because you have the same problem with jsp:include. Have you try to specify the encoding in each faulty jsp: <%@ page pageEncoding ..%>. You can also specify the encoding of the tiles-config.xml file: Hope this help, Cedric Eric Chow wrote: Hi Cedric, The returned page has appropriate encoding tag. Eric - Original Message - From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 7:05 PM Subject: Re: Struts-Tiles causes charset problem!!! Check if the returned page (the page source in the browser) has the appropriate encoding tag. The page encoding is usually set in your template.jsp file. Cedric Eric Chow wrote: Hi, 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" %> Chinese Form ID Name The above JSP works very well, I can retrieve those Chinese from database and display them correctly. After I change it to use Tiles as a template as following: tiles-def.xml = in my showChinese.jsp === 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 page="showChineseContent.jsp" flush="true"/> instead of Tiles, it also not worked. Any idea on it? Best regards, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts-Tiles causes charset problem!!!
Hi Cedric, The returned page has appropriate encoding tag. Eric - Original Message - From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 7:05 PM Subject: Re: Struts-Tiles causes charset problem!!! > > Check if the returned page (the page source in the browser) has the > appropriate encoding tag. > The page encoding is usually set in your template.jsp file. > > Cedric > > Eric Chow wrote: > > >Hi, > > > >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" %> > > > > > > > > > > > > Chinese Form > > > > > > > > > > > > > > > > > > > > ID > > Name > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >The above JSP works very well, I can retrieve those Chinese from database and display them correctly. > > > > > >After I change it to use Tiles as a template as following: > > > >tiles-def.xml > >= > > > > > > > > > > > > > >in my showChinese.jsp > >=== > > > > > > > > > > > >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 instead of Tiles, it also not worked. > > > >Any idea on it? > > > > > > > >Best regards, > >Eric > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts-Tiles causes charset problem!!!
I have the same problem with Greek Characters If i use the encoding tag at the page encoding wich is set in our template.jsp file then the text from tiles-def.xml diplayes correct but the data from database and Application.resources displays like ? If i remove encoding tag then the data and text from Application.resources dispaed correct but text from tiles displayed as ? I use PostgreSQL characters-set UTF-8, the files tiles-config.xml and application resources are saved as UTF-8 - Original Message - From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 1:05 PM Subject: Re: Struts-Tiles causes charset problem!!! > > Check if the returned page (the page source in the browser) has the > appropriate encoding tag. > The page encoding is usually set in your template.jsp file. > > Cedric > > Eric Chow wrote: > > >Hi, > > > >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" %> > > > > > > > > > > > > Chinese Form > > > > > > > > > > > > > > > > > > > > ID > > Name > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >The above JSP works very well, I can retrieve those Chinese from database and display them correctly. > > > > > >After I change it to use Tiles as a template as following: > > > >tiles-def.xml > >= > > > > > > > > > > > > > >in my showChinese.jsp > >=== > > > > > > > > > > > >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 instead of Tiles, it also not worked. > > > >Any idea on it? > > > > > > > >Best regards, > >Eric > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts-Tiles causes charset problem!!!
Hi Eric I have the same problem using Greek characters. - Original Message - From: "Eric Chow" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 12:40 PM Subject: Struts-Tiles causes charset problem!!! Hi, 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" %> Chinese Form ID Name The above JSP works very well, I can retrieve those Chinese from database and display them correctly. After I change it to use Tiles as a template as following: tiles-def.xml = in my showChinese.jsp === 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 instead of Tiles, it also not worked. Any idea on it? Best regards, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts-Tiles causes charset problem!!!
Check if the returned page (the page source in the browser) has the appropriate encoding tag. The page encoding is usually set in your template.jsp file. Cedric Eric Chow wrote: Hi, 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" %> Chinese Form ID Name The above JSP works very well, I can retrieve those Chinese from database and display them correctly. After I change it to use Tiles as a template as following: tiles-def.xml = in my showChinese.jsp === 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 instead of Tiles, it also not worked. Any idea on it? Best regards, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-Tiles causes charset problem!!!
Sorry, you can't display Chinese until the user has clicked on the flag of Belgium. (j/k) ;-) -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 March 2003 17:30 To: Struts Users Mailing List Subject: RE: Localisation Chinese? At 08:02 PM 3/5/03 +0800, you wrote: >So... if they click on say , the flag for Belgium, what language will they >get? > >-Original Message- >From: James [mailto:[EMAIL PROTECTED] >Sent: Thursday, 6 March 2003 03:12 >To: [EMAIL PROTECTED] >Subject: Localisation > > >I have a LocaleActionClass that sets the locale according to which wee flag >the user clicks, -Original Message- From: Eric Chow [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 March 2003 18:41 To: Struts Users Mailing List Subject: Struts-Tiles causes charset problem!!! Hi, 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" %> Chinese Form ID Name The above JSP works very well, I can retrieve those Chinese from database and display them correctly. After I change it to use Tiles as a template as following: tiles-def.xml = in my showChinese.jsp === 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 instead of Tiles, it also not worked. Any idea on it? Best regards, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]