jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 tags and locale property files" Watch "Struts2 tags and locale property files" New topic

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: 297

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.


I agree. Here's the link: http://aspose.com/file-tools
subject: Struts2 tags and locale property files
It's not a secret anymore!