Article View: borland.public.jbuilder.java.api
Article #1336Re: loading a resource bundle
From: Fernando Racca
Date: Mon, 11 Mar 2002 14:33
Date: Mon, 11 Mar 2002 14:33
26 lines
1630 bytes
1630 bytes
Tnks a lot Gillmer...
maybe i had a problem with the classloader an all the other parameters..
now, i only used the full package and resource bundle name, and the
ResourceBundle succesfully loaded the property i needed
tnks again
>"Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> wrote in message
news:3c8bc81e_1@dnews...
>
> It shouldn't matter what package it's in as long as you include the
package
> in the path you give to getBundle. Say your class is
> com.mydomain.mypackage1.MyClass and the properties file is
> com.mydomain.mypackage2.myproperties.properties. The following call to
> getBundle should work.
>
> resourceBundle =
> ResourceBundle.getBundle("com.mydomain.mypackage2.myproperties");
>
> --
> Gillmer J. Derge [TeamB]
>
>
>
Technical Details
Message-ID:
<3c8cc02c$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!sienna.impulse.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3c8bb859_1@dnews> <3c8bc81e_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,8dd7fd1125fb6e76 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-03-11 06:38:09 PST From: "Fernando Racca" <lord_ice@speedy.com.ar> Newsgroups: borland.public.jbuilder.java.api References: <3c8bb859_1@dnews> <3c8bc81e_1@dnews> Subject: Re: loading a resource bundle Date: Mon, 11 Mar 2002 11:33:19 -0300 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 168.226.66.118 Message-ID: <3c8cc02c$1_1@dnews> X-Trace: dnews 1015857196 168.226.66.118 (11 Mar 2002 06:33:16 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!sienna.impulse.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews