Can you please tell me how should i decide which dtd file i should include in my xml so that the application runs fine.
I am using validator framework in struts 1 and i am having a lot of problems due to these DTDs.
My xml is fine. I see errors when i change the version of ......dtds/validator_1_0_1.dtd">
I am using commons-validator-1.3.1.jar. when i use validator_1_3_0.dtd which is as per the jar file i am using, an error The content of element type "field" must match "(msg|arg|var)*" is shown.
Whereas when i use the validator_1_0_1.dtd no errors are displayed.
So i am not understanding which dtd should be used so that the application runs fine.
Also, even when i am using validator_1_0_1.dtd there are runtime errors as shown below.
INFO: Loading chain catalog from jar:file:/D:/codex/workspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/StrutsLab9/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
19 Dec, 2012 11:52:52 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 15 column 2: Element type "action" must be followed by either attribute specifications, ">" or "/>".
org.xml.sax.SAXParseException: Element type "action" must be followed by either attribute specifications, ">" or "/>".