The Struts-Layout distribution contains a rewritten and fully packaged (war file) version of the struts example application. It can be plugged into a servlet container as the original one.
To start a new web projet with Struts-Layout, the following steps must be followed:
Struts-Layout requires special treeview and sort action in your struts-config.xml. The Struts-Layout plugin can configure them automatically , or you can configure them manually.
Auto configuration by the plugin:
<plug-in className="fr.improve.struts.taglib.layout.workflow.LayoutPlugin"/>
Manual configuration of the actions:
<action path="/sort"
type="fr.improve.struts.taglib.layout.sort.SortAction"
scope="request"
validate="false">
</action>
<action path="/treeview"
type="fr.improve.struts.taglib.layout.treeview.TreeviewAction"
scope="request"
validate="false">
</action>
If forward to Tiles definition are to be used with sorting or paging on the server, the Struts-Layout request processor must be used and declared in struts-config.xml :
<controller processorClass = "fr.improve.struts.taglib.layout.workflow.LayoutRequestProcessor"/>
Configure Struts-Layout directories for your webapp. Create a file named "Struts-Layout_default.properties" in WEB-INF/classes.
directory.config = config directory.images = images
Copy the the "config" and "images" directory from the "resources" folder of the Struts-Layout archive to your webapp root folder