commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: [resources]ResourceBundle.getBundle
Date Wed, 19 Mar 2003 20:37:30 GMT
It now accepts the full name of the properties file instead of just the 
package name.  This allows you to name the file however you like.

David



>From: george stewart <gstewart@us-south.net>
>Reply-To: "Jakarta Commons Developers List" 
><commons-dev@jakarta.apache.org>
>To: commons-dev@jakarta.apache.org      Subject: Re: 
>[resources]ResourceBundle.getBundle
>Date: 19 Mar 2003 14:45:52 -0500
>
>george stewart <gstewart@us-south.net> writes:
>
> > > Date: 18 Mar 2003 09:07:06 -0500
> > > From: george stewart <[EMAIL PROTECTED]>
> > > Reply-To: Jakarta Commons Developers List <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: [resources]ResourceBundle.getBundle
> > >
> > > In the messages class, there's static method:
> > >     public static Messages getMessages(String name)
> > >
> > > which does this:
> > > Resources resources = factory.getResources(name + ".LocalStrings");
> > >
> > > This doesn't work for ResourceBundle.getBundle on W2K with JDK 
>1.3.1_04.
> >
> > The intent is that "name" be the fully qualified package name of the 
>class
> > that you are in (so that you can localize all the error messages for 
>that
> > package in a single file).  Struts uses a technique very similar to this
> > with no problems on Windows, so it would surprise me that this didn't 
>work
> > (although I don't have a 1.3 JDK on my windows PC to check it right at 
>the
> > moment).
>
>Don't trouble to try.  It works if "name" is the package name.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message