🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1828

Where does ResourceBundle look for properties files?

#1828
From: Andrew van der Voort
Date: Fri, 17 Aug 2001 02:43
22 lines
2067 bytes
I have build a tag library based on Sun's I18n classes in their Advanced
JavaServer Pages book. While building the tag library, I had a test jsp page
that used the (unarchived) classes and extracted messages successfuly,
displaying them on the jsp page. Having put the class files and the
taglib.tlds in the jar file, I am trying to deploy this library in another
project.

I have created a test project and made the path to the jar file a required
library. I have put a properties file containing messages into the
WEB-INF/classes directory of the new project. The test project has a jsp
page only. No other classes.

Now the properties file can't seem to be located. The call to
ResourceBundle.getBundle fails saying it can't find it. I'm presuming that
the properties file has to be in the classpath but it isn't being found. I'm
wondering whether there is anything JBuilder specific I need to concern
myself with.

It all worked fine when I was building the tag library itself. As soon as I
bult the jar file and tried it elsewhere it didn't work.

I'm confused... Andrew
Technical Details
Message-ID: <3b7c8526_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed.freenet.de!news1.dtag.de!news.gwi-ag.com!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,b1276ab302bce85f,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-08-16 19:54:38 PST
Reply-To: "Andrew van der Voort" <andrew@astarte.co.nz>
From: "Andrew van der Voort" <andrew@astarte.co.nz>
Newsgroups: borland.public.jbuilder.java.api
Subject: Where does ResourceBundle look for properties files?
Date: Fri, 17 Aug 2001 14:43:55 +1200
Lines: 24
Organization: Astarte Ltd
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 203.97.231.58
Message-ID: <3b7c8526_1@dnews>
X-Trace: dnews 998016294 203.97.231.58 (16 Aug 2001 19:44:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed.freenet.de!news1.dtag.de!news.gwi-ag.com!dnews