James, Thanks! I'll give this a try.
BTW, does anyone know what the general consensus is on being able to use these XML external entity references within a WAR? Is it reasonable to expect that the Struts Digester will ever be able to handle this? Vaughan. > -----Original Message----- > From: James Holmes [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 12:32 PM > To: [EMAIL PROTECTED] > Subject: RE: XML include hack to split struts-config.xml > > > I have the "fix" for multiple config files almost > done. I need to create the patch and send out an > email, but in the mean time you can use: > > http://www.ejcenter.com/struts/ActionServlet.java > > Just recompile the 1.0 source with the above file and > then in your web.xml file you can use a comma (",") > delimited list of config files for the "config" > <init-param>. If you have any questions let me know. > > -james > [EMAIL PROTECTED] > http://www.ejcenter.com/struts/ > > > --- Vaughan Jackson <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > A while ago (Sept 10), Renaud Waldura posted this > > issue, saying that the > > only way he > > could get this to work was to hardwire the path to > > an included XML file like > > this: > > > > <!DOCTYPE struts-config PUBLIC > > "-//Apache Software Foundation//DTD Struts > > Configuration 1.0//EN" > > > "<http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd>; > > > > [ <!ENTITY downloadClientActions SYSTEM > > > > > "file:./WEB-INF/config/struts/actions-downloadClient.xml"> > > ] > > > > > > > I have found the same thing. This is not going to > > work in general. > > > > It seems to me that the reason this is the only way > > we can get it > > to work is because Digester, in implementing > > resolveEntity( ), > > refuses to resolve the path to a file like this, > > unless it is a > > pre-registered entity. Registration seems to require > > Java code calls prior > > to parsing. > > > > When Digester refuses to resolve the path, the web > > servers XmlParser seems > > to try to work out the path - and resolves it its > > current directory? > > > > My guess is that for this to work properly, Digester > > would have > > to be able to resolve the path within the WAR file? > > > > Any feedback welcome. > > > > Thanks, > > Vaughan. > > > > > > ___________________________________________________ > > Vaughan Jackson > > Development > > Tumbleweed Communications > > [EMAIL PROTECTED] / +1 (650) 216 2532 > > ___________________________________________________ > > > > > > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com >