Friday, 21 February 2014

Struts include element

So here in struts configuration file we have a <include> element which is used to make this file easier to maintain for large applications.
It is advisable to divide in smaller files and use <include> element .
We use this element to reference the file and these each file will ideally include
1.doctype
2.Package and struts root element.

<struts>     
<include file="struts1.xml" />
<include file="struts2.xml" />
<include file="struts3.xml" />
</struts>

So each included file should include a package ,
valid doctype.

No comments:

Post a Comment