Hi,
As David says, the <component-definitions> is deprecated, but it still working.
Your error comes from the xml validation: your doctype specify tiles-definition as root element. Try:
<!DOCTYPE component-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
You can also try:
<!DOCTYPE component-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
But I suggest you to update your xml files if possible.
Cedric
Sri Sankaran wrote:
Using:
Struts 1.0.2
Tiles version compatible with Struts 1.0.2
Realizing that my tile-definitions.xml file did not have a Doctype statement, I proceeded to "do the right thing" and added it. However now my IDE warns me that I have the "wrong root element". Following is a snippet of my tile-definitions file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
<component-definitions>
<!-- all my tile definitions -->
</component-definitions>
What am I doing wrong? I am unable to use the Struts Console either. If I try to open the tile-definitions.xml file with it I get an error dialog that reads
Error on line 4: External entity not found: "http://jakarta.apache.org/struts/dtds/tiles-config.dtd".: Connection refused: connect
Any ideas?
Sri
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

