Forgot to "reply all".
"Craig R. McClanahan" wrote:
> "Donald E. Vandenbeld" wrote:
>
> > I implemented something similar in that I have an Action parameter that gets
> > looked up in a hashtable to get the destination URL. I currently read this
> > hashtable from a properties file. Can you tell us what was involved in
> > using XML files to configure your application? Did you write your own
> > classes to read/interpret the XML file?
> >
>
> No, I used the same XML parser classes that Tomcat uses to read server.xml and
> web.xml. This code happened to be the Java Software "Project X" parser, but any
> XML parser should be able to do something as simple as this. What you get out of
> the parser is either a document tree using the Document Object Model (from the W3C)
> or a series of SAX (Simple API for XML parsing, I think) events -- depends on your
> preference. Using a simple case like this to learn about XML parsing is actually a
> pretty useful exercize.
>
> One place to go for more info (there are lots of others):
> <http://java.sun.com/xml>.
>
> Craig
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets