How about just using a Properties object (java.util.Properties)? Setup a default configuration file, it doesn't have to be server.xml or web.xml. Make it something like "myapp.conf" or whatever. Then read that file in on startup, creating a Properties object with the values. You could write the file back out as a stream, or just keep the changes around for that particular session.
John Turner [EMAIL PROTECTED] -----Original Message----- From: Mark O'Driscoll [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 9:49 AM To: Tomcat Users List Subject: Re: Default Servlet Parameters I have a supplementary question to this. Is there any accepted way to pass parameters to servlets/jsps that may be edited? I can see that <init-param> & <context-param> do what I want but I need to allow a user to change values of some parameters, save them and the new values would be used subsequently. I don't want to have my code re-writing web.xml or server.xml. I guess I could have a context parameter pointing to an OS file that would contain parameter sets in XML or java property sets. Any other approaches? Oh, that's another question. Any common software out there that can easily parse an XML property file or can I use some of the tomcat libraries? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>