Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-config

 
Parijat Mukherjee
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the importance of DOC-TYPE in the struts-config and what all things are to be taken care of
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its the DTD. It specifies the schema of the document.
 
James Holmes
Author
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Parijat,
The DOC-TYPE element specifies the DTD (Document Type Definition) file that the XML file should conform to. By this I mean that the DTD specifies what tags can be in the XML file, what order they should be in and what attributes the tags have. Essentially DTDs specifiy the format of XML files.
To make working with the Struts configuration files easier, I created a tool called Struts Console. Struts Console provides a GUI interface for editing the files so that you don't have to edit the XML by hand. This greatly simplifies development.
Struts Console is a free tool and can be downloaded from my website at:
http://www.jamesholmes.com/struts/
Hope that helps,
James
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic