Re: getting value from struts.properties in action class

2009-03-24 Thread Chris Pratt
You can use the @Inject annotation to inject values from the struts properties like this: import com.opensymphony.xwork2.inject.Inject; /** * Inject whether XSL Caching should be used * * @param val The Boolean String Value */ @Inject("struts.xslt.nocache") public void setNoCac

Re: getting value from struts.properties in action class

2009-03-24 Thread Rafael Taboada
Try to use ResourceBundle On Tue, Mar 24, 2009 at 6:29 PM, Windy Hung wrote: > Hi > I set > "struts.multipart.saveDir=c:\\test-tmp" in my struts.properties. The > setting is for file uploading. > And I would like to check if the directory exists during file loading in my > action class. > > Is

getting value from struts.properties in action class

2009-03-24 Thread Windy Hung
Hi I set "struts.multipart.saveDir=c:\\test-tmp" in my struts.properties. The setting is for file uploading. And I would like to check if the directory exists during file loading in my action class. Is there any easy way to get value out from struts.properties instead of using getClass().getR