Say I have a struts.properties file with a defined value uploads.directory . How can I access that value from an Actioncontext programatically?
+1
A:
You can use getText("some.property.name") which return you the property value
http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html
Roy Chan
2009-05-06 02:27:14
A:
You need to put the my.properties file or my_locale.propeties file in the package that houses your action class.
Tesnep
2010-08-25 12:41:08