properties for a shallow/flat structure
xml for deep/hierarchical/complex structure

xml for hieraglyphics that make non-programmers respect us more & to hammer
networks with more traffic describing data than actual data. oh & it's a widely
used standard.

--- Ronald Haring <[EMAIL PROTECTED]> wrote:
> ever since the hype of xml started, people tend to forget about properties.
> what is wrong with a properties file nowadays?
> Its fast, its simple, and good enough for most configuration issues I have
> encountered so far.
> 
> Gr
> Ronald 
> 
> > -----Original Message-----
> > From: Matt Raible [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 4:42 PM
> > To: Struts Users Mailing List
> > Subject: "Best Practice" for parsing an XML file for application
> > configuration parameters?
> > 
> > 
> > I am developing an application that will require different 
> > application settings
> > for different machines/customers.
> > 
> > Because of this, I want to to externalize certain 
> > configuration settings to a
> > XML file outside of web.xml - let's call this myApp.xml.
> > 
> > I have a StartupServlet that I can parse this file with.
> > 
> > 1.  What should I use to parse this file - SAX, DOM, Digester?
> > 
> > 2.  Should I have a bean that represents all the 
> > configuration settings, and
> > put this in the ServletContext as an attirubute, or each 
> > individual setting?
> > 
> > 3.  If I use Digester and a bean (seems good), should I 
> > change my XML in the
> > following snippet?
> > 
> > <application>
> >     <respository>
> >             <root>d:/repository</root>
> >             <assets>assets</assets>
> >             <viewPath>file://d:/repository/assets</viewPath>
> >     </respository>
> >     <assessment>
> >             <!-- This value is a percentage -->
> >             <default-passing-score>75</default-passing-score>
> >     </assessment>
> > </application>
> > 
> > Any help (or URLs) are appreciated!
> > 
> > Matt
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Try FREE Yahoo! Mail - the world's greatest free email!
> > http://mail.yahoo.com/
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> Furore B.V.
> Rijswijkstraat 175-8
> Postbus 9204
> 1006 AE Amsterdam
> tel. (020) 346 71 71
> fax. (020) 346 71 77
> 
> ----------------------------------------------------------------------------
> ---------------
> The information transmitted is intended only for the person
> or entity to which it is addressed and may contain confidential
> and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in
> reliance upon, this information by persons or entities other
> than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material
> from any computer
> ----------------------------------------------------------------------------
> ---------------
> 
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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

Reply via email to