views:

1550

answers:

2

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

You need to put the my.properties file or my_locale.propeties file in the package that houses your action class.

Tesnep