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
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)
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
> 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]
--
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
> 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
6 matches
Mail list logo