This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts-config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-config" Watch "Struts-config" New topic


Parijat Mukherjee

Joined: Sep 21, 2003
Posts: 26
what is the importance of DOC-TYPE in the struts-config and what all things are to be taken care of
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Its the DTD. It specifies the schema of the document.

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
James Holmes
Ranch Hand

Joined: Jan 06, 2004
Posts: 64
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:
Hope that helps,
It is sorta covered in the JavaRanch Style Guide.
subject: Struts-config