| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://struts.apache.org/dtds/tiles-config_1_1.dtd"> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <tiles-definitions> |
| <definition name=".common"> |
| <put name="title" value="TilesTool Demo!" /> |
| </definition> |
| <definition extends=".common" name=".frontpage" path="/app4/layout/masterLayout.vm"> |
| <put name="someAttribute" value="some.value" /> |
| <put name="menu" value=".frontpage.menu" /> |
| <put name="footer" value="/app4/footer.vm" /> |
| <put name="body" value=".frontpage.body" /> |
| </definition> |
| <definition name=".frontpage.menu" path="/app4/menu_frontpage.vm"> |
| <putList name="items"> |
| <item link="http://www.link1.com" value="Link 1" /> |
| <item link="http://www.link2.com" value="Link 2" /> |
| </putList> |
| </definition> |
| <definition controllerClass="examples.app4.MyTileController" name=".frontpage.body" path="/app4/layout/bodyLayout.vm"> |
| <put name="header" value="/app4/header_frontpage.vm" /> |
| <put name="body" value="/app4/body_frontpage.vm" /> |
| </definition> |
| <definition name=".common.jsp"> |
| <put name="title" value="TilesTool Demo (JSP)!" /> |
| </definition> |
| <definition extends=".common.jsp" name=".frontpage.jsp" path="/app4/layout/masterLayout.jsp"> |
| <put name="someAttribute" value="some.value" /> |
| <put name="body" value=".frontpage.body.jsp" /> |
| <put name="menu" value=".frontpage.menu.jsp" /> |
| <put name="footer" value="/app4/footer.jsp" /> |
| </definition> |
| <definition name=".frontpage.menu.jsp" path="/app4/menu_frontpage.jsp"> |
| <putList name="items"> |
| <item link="http://www.link1.com" value="Link 1" /> |
| <item link="http://www.link2.com" value="Link 2" /> |
| </putList> |
| </definition> |
| <definition controllerClass="examples.app4.MyTileController" name=".frontpage.body.jsp" path="/app4/layout/bodyLayout.jsp"> |
| <put name="header" value="/app4/header_frontpage.jsp" /> |
| <put name="body" value="/app4/body_frontpage.jsp" /> |
| </definition> |
| <definition name=".common.mixed"> |
| <put name="title" value="TilesTool Demo (Mixed)!" /> |
| </definition> |
| <definition extends=".common.mixed" name=".frontpage.mixed" path="/app4/layout/masterLayout.vm"> |
| <put name="someAttribute" value="some.value" /> |
| <put name="body" value=".frontpage.body.jsp" /> |
| <put name="menu" value=".frontpage.menu" /> |
| <put name="footer" value="/app4/footer.jsp" /> |
| </definition> |
| </tiles-definitions> |