Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes s:submit key 's i18n problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:submit key Watch "s:submit key New topic
Author

s:submit key 's i18n problem

walter wang
Ranch Hand

Joined: Jun 02, 2001
Posts: 154
in struts2

if i use
<s:text name="key.update" /> to get value from message properties for german characters "ä,ö,ü" , it works without problem
<s:submit kez="key.update" /> to get value from message properties for german characters "ä,ö,ü" , it could not display correctly
<sx:submit kez="key.update" /> to get value from message properties for german characters "ä,ö,ü" , it works without problem

above test case all works on same envoirment (charSet=UTF-8, pageEncoding=UTF-8)
what is the reason?

could I assign <s:text name="key.update" /> to a variable , then give this variable to s:submit 's label ?


public class Walter { public boolean is_Working_Now (boolean is_boss_Coming) { return is_boss_Coming; }
 
GeeCON Prague 2014
 
subject: s:submit key 's i18n problem