1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
<!-- Definitions for Tiles quick tests -->
<tiles-definitions>
<!-- Test instances -->
<definition name="test.home.page" extends="doc.mainLayout" >
<put name="title" value="Tiles: test page" />
<put name="body" value="/test/testAll.jsp" />
</definition>
<!-- Test menu definition -->
<definition name="test.menu.links" path="/layouts/menu.jsp" >
<put name="title" value="Tests" />
<putList name="items" >
<item value="All in one" link="/test/index.jsp" />
<item value="Basic" link="/test/testBasic.jsp" />
<item value="Ignore attribute" link="/test/testIgnore.jsp" />
<item value="Definition" link="/test/testDefinitions.jsp" />
<item value="Role" link="/test/testRole.jsp" />
<item value="Struts action" link="/test/testStrutsAction.jsp" />
<item value="Controller" link="/test/testController.jsp" />
</putList>
</definition>
<!-- Test instances -->
<definition name="test.layout.test1" path="/test/layout.jsp" >
<put name="title" value="Test definition from factory : basic" />
<put name="header" value="header.jsp" />
<put name="body" value="body.jsp" />
</definition>
<!-- Test instances -->
<definition name="test.layout.test2" path="/test/layout.jsp" >
<put name="title" value="Test definition from factory : specify types" type="string" />
<put name="header" value="header.jsp" type="page" />
<put name="body" value="body.jsp" type="page" />
</definition>
<!-- Test instances -->
<definition name="test.layout.test3" path="/test/layout.jsp" >
<put name="title" value="Test definition from factory : Test with a tag body (to do)" />
<put name="header" value="This is a header" direct="true"/>
<put name="body" value="body.jsp"/>
</definition>
<!-- Test backward compatibility -->
<definition name="test.layout.test4" path="/test/layout.jsp" >
<put name="title" value="Test definition from factory: backward compatibility"
direct="true"/>
<put name="header" value="header.jsp"/>
<put name="body" value="body.jsp" direct="false" />
</definition>
<!-- Test Struts Action and Tiles integration -->
<definition name="test.struts.action" path="/test/layout.jsp" >
<put name="title" value="Test Struts Action and Tiles integration: default title"
direct="true"/>
<put name="header" value="header.jsp"/>
<put name="body" value="body.jsp" direct="false" />
</definition>
<!-- Test Struts Action and Tiles integration -->
<definition name="test.struts.action.fail" path="/test/failpage.jsp" >
<put name="title" value="Test fail" direct="true" />
</definition>
<!-- Test Tiles Controller -->
<definition name="test.struts.controller"
path="/test/layout.jsp"
controllerClass="org.apache.struts.webapp.tiles.test.TestTileController" >
<put name="title" value="Test Tile Controller : call to Controller" />
<put name="header" value="header.jsp"/>
<put name="body" value="body.jsp" />
</definition>
<!-- Test body for put tag -->
<definition name="test.body" path="/test/failpage.jsp" >
<put name="title" direct="true">first body : title</put>
<put name="body" direct="true">second body : body</put>
</definition>
<!-- Test instances -->
<definition name="test.action.noforward" path="/test/layout.jsp" >
<put name="title" value="Test Action with No Forward" />
<put name="header" value="header.jsp" />
<put name="body" value="showRequestUri.jsp" />
</definition>
</tiles-definitions>
|