Ahhh

Do I need to declare the resource bundle in the struts-config.xml file
the way the messageresources are declared.

<message-resources parameter="MessageResources" />

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.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 turn
> 
> You'd do exactly that: create a file named
> "ApplicationResources.properties", and put it in the "classes" directory
> right under "WEB-INF". In your "Action" class, you'd do something like this:
> 
>        ResourceBundle res =
> ResourceBundle.getBundle("ApplicationResources");
>        String server1 = res.getString("server.1");
> 
> etc, etc, to read the values.
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to