File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 tags and locale property files

 
Kevin P Smith
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 297
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic