You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith Chew <ke...@jungledrum.co.nz> on 2002/02/25 06:08:10 UTC
Digester and Struts...
Hi
I have having a problem with the Digester package. Using Struts, I have
edited the struts-config.xml file to:
<?xml version="1.0"?>
<!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 part1 SYSTEM "file:part1.xml">
<!ENTITY part2 SYSTEM "file:part2.xml">
<!ENTITY part3 SYSTEM "file:part3.xml">
]>
<struts-config>
<form-beans>
&part1;
</form-beans>
<global-forwards>
&part2;
</global-forwards>
<action-mappings>
&part3;
</action-mappings>
</struts-config>
where part1.xml, part2.xml and part3.xml are in the same folder as
struts-config.xml.
I get the exception File part1.xml cannot be found.
I have reported this to the Xerces mailing list and they said that before
parsing the file, you need to set the systemId, eg:
source.setSystemId("file:" + getServletConfig().getAbsolutePath() + "/" +
fileName);
This will allow the part1.xml, part2.xml and part3.xml to be found. Looking
at the Digester class, it does not do this. Can we fix this problem?
Keith
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>