On 8/16/07, Robert Segal <[EMAIL PROTECTED]> wrote: > So as an alternative I know the second method will work but was curious > if anyone has tried the first method. >
I doubt the 1st method is valid, since you are basically inventing new deployment descriptor elements, and I know for sure that Eclipse would go crazy with error messages. In the 2nd method you are basically serializing the XML into a string.. I suppose that is Ok, but I think you have to have also have an <env-entry-type>java.lang.String</env-entry-type> element to consider web.xml well formed. Is there any reason why you couldn't store your *.xml file in WEB-INF/ and call it with something like: ServletContext sc = getServletConfig().getServletContext(); String myXMLFIlePath = sc.getRealPath("/WEB-INF/myXMLFIle.xml"); ... Document document = parser.parse(new File(myXMLFilePath)); -- brian --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]