Re: Properties files

2007-06-05 Thread vikas rao
Yeah, create a .properties file, have your key, value pairs in it. Write a simple java program like this at first to see how it works: import java.util.ResourceBundle; public class ConfigRead { public static ResourceBundle confdetails=ResourceBundle.getBundle(" JDomTrial.myconffile"); publi

Re: Properties files

2007-06-05 Thread Frank W. Zammetti
Comes with java itself .. grep java.util.Properties Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1)

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Mick.Knutson
iling List' Subject: RE: Properties Files? (to avoid hardcoding server locations) > Do I need to declare the resource bundle in the > struts-config.xml file the way the messageresources are declared. Only if you want the "html:errors" or "html:messages" tags to be

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Slattery, Tim - BLS
> Do I need to declare the resource bundle in the > struts-config.xml file the way the messageresources are declared. Only if you want the "html:errors" or "html:messages" tags to be able to access it. -- Tim Slattery [EMAIL PROTECTED] --

Re: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Dave
Ahhh Do I need to declare the resource bundle in the struts-config.xml file the way the messageresources are declared. or is that only for the message resouces? On Mon, 20 Sep 2004 16:02:43 -0400, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > How would I create an ApplicationResources.pr

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Slattery, Tim - BLS
> How would I create an ApplicationResources.properties? > Ideally I'd like to have a properties file that had > > server.1=www.bla.com > server.2=www2.bla.com > etc > > Then read them into an array of appropriate objects, then > loop through the objects, attempting to connect to each one in tu