commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From george stewart <gstew...@us-south.net>
Subject Re: [resources]ResourceBundle.getBundle
Date Wed, 19 Mar 2003 19:45:52 GMT
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


Mime
View raw message