aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-config" Watch "Struts-config" New topic
Author

Struts-config

Parijat Mukherjee
Greenhorn

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
Author
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
Author
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:
http://www.jamesholmes.com/struts/
Hope that helps,
James
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts-config