If these need to be used by an action, you may also be able to store it in the ActionMapping "parameter", and then retrieve it in the action class as
String workingDir = mapping.getParameter(); Of course, this works best if each setting is only used by one action. [EMAIL PROTECTED] wrote: > > Hi > > What is the best way to set a number of configuration variables to be > used in Struts. Ie , I have variables like > > WORKING_DIR=/var/webapp/tmp > PIC_DIR=/var/webapp/pictures > > I need to be able to set them in one of the configuration files in the > WEB-INF dir so I can access the values from my servlets. Should I use > the context-param tag in the web.xml file for tomcat? or is there > a better way? > > Cheers > > Antony > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>