tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheen Qian <cq...@packeteer.com>
Subject Re: Classloader and StringManager classes
Date Fri, 23 Jun 2000 20:42:06 GMT
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 <fesch@ecologic.net>
> To: <tomcat-user@jakarta.apache.org>
> 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

Mime
View raw message