<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
~ 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. | |
--> | |
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" | |
"http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> | |
<tiles-definitions> | |
<!-- BASE DEFINITIONS FOR THE ENTIRE APPLICATION --> | |
<definition name="templates.base" template="/WEB-INF/jsp/templates/base_layout.jsp"> | |
<put-attribute name="pageTitleKey" value="page.general.title"/> | |
<put-attribute name="header" value="/WEB-INF/jsp/common/header.jsp"/> | |
<put-attribute name="footer" value="/WEB-INF/jsp/common/footer.jsp"/> | |
</definition> | |
<!-- USER FACING PAGES --> | |
<definition name="templates.user.page.*" extends="templates.base"> | |
<put-attribute name="body" value="/WEB-INF/jsp/views/page.jsp"/> | |
<put-attribute name="layout" value="/WEB-INF/jsp/layouts/{1}.jsp"/> | |
</definition> | |
<definition name="templates.user.personProfile.*" extends="templates.base"> | |
<put-attribute name="body" value="/WEB-INF/jsp/views/personProfile.jsp"/> | |
<put-attribute name="layout" value="/WEB-INF/jsp/layouts/{1}.jsp"/> | |
</definition> | |
<definition name="templates.user.*" extends="templates.base"> | |
<put-attribute name="pageTitleKey" value="page.{1}.title"/> | |
<put-attribute name="body" value="/WEB-INF/jsp/views/{1}.jsp"/> | |
</definition> | |
<!-- ADMIN ONLY PAGES --> | |
<definition name="templates.admin.*" extends="templates.base"> | |
<put-attribute name="pageTitleKey" value="admin.{1}.title"/> | |
<put-attribute name="body" value="/WEB-INF/jsp/views/admin/{1}.jsp"/> | |
</definition> | |
</tiles-definitions> |