This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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,
I agree. Here's the link:
subject: Struts-config
Similar Threads
Problem with JSP form
NO Getter method
The page will go to main.jsp even user don't input username?
how many struts-config, validator xml file are there in an application
no getter method