aspose file tools*
The moose likes Struts and the fly likes Struts2 tags and locale property files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 tags and locale property files" Watch "Struts2 tags and locale property files" New topic
Author

Struts2 tags and locale property files

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Just wondering if someone could shine a little light on why my _CH property file with the following line:-

works with the folowing tag:

Displaying 请输入密码
But with this tag:

I just get ???

Not too important I can just use the first example, but the s:text is a little shorter and neater if you're filling your whole page with tags.
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Kevin,

Struts is a frame work and there is method gettext() in actionsupport class.so when you are using property tag you need to retrieve values based on key .So you are passing key in the get text method based on which values are retrieved.

http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html

Regards
Jatan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 tags and locale property files