Does this help?

InputStream input = 
getServletContext().getResourceAsStream("WEB-INF/config/something.xml");


-Dave


> -----Original Message-----
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:09 AM
> To: Struts Users Mailing List
> Subject: RE: best place to keep the user specific XML files
> 
> 
> Hi,
> Digester is on of the solutions, but I have all the
> classes written and working to build the XML file, map
> them to java objects, now only the missing piece is
> reading the XML file, so need some suggestions on
> reading these XML files, 
> 
> Ashish
> 
> --- Durham David Cntr 805CSS/SCBE
> <[EMAIL PROTECTED]> wrote:
> > Well, users don't need to download the xml files
> > directly so of course your app can access them at
> > WEB-INF/somewhere.  It sounds like
> > http://jakarta.apache.org/commons/digester would be
> > of use for this.
> > 
> > 
> > > -----Original Message-----
> > > From: Ashish Kulkarni
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 12, 2003 9:49 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: best place to keep the user specific XML
> > files
> > > 
> > > 
> > > Hi,
> > > 
> > > I have some xml files which are used to store the
> > > preference files of the user,
> > > 
> > > What is the best location to keep them, so i can
> > > access them giving the location of the files, I
> > dont
> > > want to rely on classloader as they behave
> > differently
> > > for different Application server(for example ,
> > tomcat
> > > looks for files in tomcat\common\classes, where as
> > > websphere looks in classes folder of application
> > > directory), Also i dont want to hard code the
> > path,
> > > the path must be dependent on where the web
> > > application is installed
> > > 
> > > If i keep it in WEb-INF\classes\config\
> > > I cannot access them by giving the path like
> > > WEB-INF/classes/config/my.xml
> > > 
> > > 
> > > 
> > > =====
> > > A$HI$H
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Shopping - Send Flowers for Valentine's Day
> > > http://shopping.yahoo.com
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> =====
> A$HI$H
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to