Wait a minute, I think we misinterpreted the question. There are APIs for
getting the context parameters that are set in the web.xml. But you don't
get them by parsing the XML file (you could, but that's the hard way); you
obtain them from the objects that are configured by the XML file, namely the
ServletConfig and ServletContext objects. See the Servlet 2.2 API docs:
http://java.sun.com/products/servlet/2.2/javadoc/index.html for the methods
in those classes that deal with InitParameters.
Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/
> -----Original Message-----
> From: Chris Heinemann [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 08, 2000 4:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Reading Context Params from web.xml
>
>
>
> See xml.apache.org (specifically the serializer)
>
> Steve Penella wrote:
>
> > I've asked around and it seems there are not packaged java
> functions that
> > read data from xml files ... although I heard that sun has
> some additional
> > classes that you can download that contain such methods.
> >
> > -----Original Message-----
> > From: Gaurav Gehlot [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 07, 2000 10:13 PM
> > To: 'Jrun-Talk
> > Subject: Reading Context Params from web.xml
> >
> > Hi,
> > Is there a way to programatically read the context
> params specified in
> > the web.xml file under the WEB-INF directory.
> > TIA,
> > gg
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.