• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dtd issue in struts 1

 
Greenhorn
Posts: 17
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure your XML is valid?
 
shanky raja
Greenhorn
Posts: 17
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
crispy bacon. crispy tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic