@ Martin: Not sure why you reply directly to me and not to the list? Maybe hit 
the wrong button?

BTW: UTF-8 works great for Chinese and the far eastern languages. UTF-16 is 
incorrect in this case. The Tomcat URIEncoding= parameter refers to how to 
decode parameters that are included on the query string in an HTTP GET request, 
and this should (always) be UTF-8.

--- On Thu, 4/9/09, Martin Gainty <mgai...@hotmail.com> wrote:
From: Martin Gainty <mgai...@hotmail.com>
Subject: RE: It's a struts2 bug? or just I miss something or configuration  
error
To: glindh...@yahoo.com
Date: Thursday, April 9, 2009, 7:45 PM




#yiv326085407 .hmmessage P
{
margin:0px;
padding:0px;}
#yiv326085407 {
font-size:10pt;
font-family:Verdana;}

http://struts.apache.org/2.0.8/docs/submit.html
key specifies the name,label and the value

Also last I heard UTF-8 does not support all Chinese Japanese Korean charsets 
so you'll need to tweak your TC connector URIEncoding settings to UTF-16 in 
$TOMCAT_HOME/conf/server.xml
   <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
               URIEncoding="UTF-16"
   />HTH
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> Date: Thu, 9 Apr 2009 12:16:30 -0700
> From: glindh...@yahoo.com
> To: user@struts.apache.org
> Subject: Re: It's a struts2 bug? or just I miss something or configuration  
> error
> 
> 
> Can you do a view source on the page from your browser and post what the form
> looks like.
> 
> 
> gordian yuan wrote:
> > 
> > I forgot to say that I am using Struts 2.1.6
> > 
> > On Thu, Apr 9, 2009 at 6:14 PM, Gordian Yuan <gordiany...@gmail.com>
> > wrote:
> > 
> >> Hi all,
> >>
> >> I encountered the issue of international and I don't know this is a bug
> >> or
> >> just I miss something or configuration error.
> >>
> >> The issue is
> >>
> >> I have a simple page like this
> >>
> >> <s:form action="saveCampaign">
> >>    <s:textfield id="name" name="name" key="createCampaign.name"/>
> >>    <s:submit key="createCampaign.create"/>
> >> </s:form>
> >>
> >> and i have two properties
> >>
> >> #en_US properties
> >> createCampaign.name=Name
> >> createCampaign.submit=Create
> >>
> >> #zh_CN properties
> >> createCampaign.name=名称
> >> createCampaign.submit=创建
> >>
> >> In english version everything is fine, but in chinese version the
> >> s:textfield is fine, but s:submit tag is some messy code!
> >>
> >> I have change the page like this
> >>
> >> <s:form action="saveCampaign">
> >>    <s:textfield id="name" name="name" key="createCampaign.name"/>
> >>    <s:submit key="createCampaign.name"/>
> >> </s:form>
> >>
> >> But the submit button still messy code ..
> >>
> >> Is it a bug?
> >>
> >> Any input will be welcome .. thx
> >>
> >> Gordian
> >>
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/It%27s-a-struts2-bug--or-just-I-miss-something-or-configuration-error-tp22968079p22977533.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

Rediscover Hotmail®: Get e-mail storage that grows with you.  Check it out. 



      

Reply via email to