aspose file tools*
The moose likes Struts and the fly likes dtd issue in struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dtd issue in struts 1" Watch "dtd issue in struts 1" New topic
Author

dtd issue in struts 1

shanky raja
Greenhorn

Joined: Dec 19, 2011
Posts: 17

Hi All,

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.

Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

Are you sure your XML is valid?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
shanky raja
Greenhorn

Joined: Dec 19, 2011
Posts: 17

Hi Joe,

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 "/>".

Thanks for your help.
 
jQuery in Action, 2nd edition
 
subject: dtd issue in struts 1