Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 85064 invoked from network); 23 Jun 2000 20:40:42 -0000 Received: from relay03.netaddress.usa.net (204.68.24.183) by locus.apache.org with SMTP; 23 Jun 2000 20:40:42 -0000 Received: (qmail 1792 invoked from network); 23 Jun 2000 20:40:41 -0000 Received: from anon.packeteer.com (HELO packeteer.com) (207.78.98.3) by relay03.netaddress.usa.net with SMTP; 23 Jun 2000 20:40:41 -0000 Message-ID: <3953CB9E.D69C6A87@packeteer.com> Date: Fri, 23 Jun 2000 13:42:06 -0700 From: Cheen Qian X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Classloader and StringManager classes References: <006e01bfdd0d$bfdc9180$6e14730a@dot.state.oh.us> <3953B7CC.6F279906@ecologic.net> <003401bfdd52$edd6b030$6e14730a@dot.state.oh.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N fsdv James Cook wrote: > > Thanks, > > To make this work in Tomcat, I guess I would have to extend StringManager to > use the getResourceAsStream method? I don't have an absolute filename. Is > this absolutely necessary...is anyone succesfully using StringManager in > their servlets? > > jim > > ----- Original Message ----- > From: Fred Esch > To: > Sent: Friday, June 23, 2000 3:17 PM > Subject: Re: Classloader and StringManager classes > > > Try something like this, it works for me. > > > > URL url = new URL(fileName); > > InputStream in = url.openStream(); > > Properties p = new Properties(); > > p.load(in); > > > > > > James Cook wrote: > > > > > My servlet makes use of the org.apache.tomcat.util.StringManager class > to > > > load string resources from a properties file. Unfortunately, this class > > > throws an exception when loading the properties file in my servlet. The > > > LocalStrings.properties file is in the appropriate directory relative to > my > > > classes. > > > > > > Am I experiencing a classloader issue here? Is anyone using > StringManager in > > > their servlets? > > > > > > thanks, > > > jim > > > > > > > -------------------------------------------------------------------------- > > > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commmands, email: tomcat-user-help@jakarta.apache.org > > > > -- > > Fred Esch > > ____________________________________________________ > > > > E C O l o g i c C o r p o r a t i o n > > http://www.ecologic.net > > > > fesch@ecologic.net > > 19 Eye Street, N.W. > > Washington, DC 20001 > > > > v. 202.218.4100 > > f. 202.842.5088 > > > > Object-Relational Software Engineering and Systems Integration > > > > > > > > -------------------------------------------------------------------------- > > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commmands, email: tomcat-user-help@jakarta.apache.org > > > > > > -------------------------------------------------------------------------- > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > For additional commmands, email: tomcat-user-help@jakarta.apache.org