Last active
August 29, 2015 14:27
-
-
Save dodangquan/5b07dc01e5c691f8646e to your computer and use it in GitHub Desktop.
Apache Tiles Template Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE tiles-definitions PUBLIC | |
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" | |
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> | |
<tiles-definitions> | |
<definition name="template2" template="/WEB-INF/views/layout2.jsp"> | |
<put-attribute name="home" value="" /> | |
</definition> | |
<definition name="template.mytemplate" template="/WEB-INF/views/layout.jsp"> | |
<put-attribute name="header" value="/WEB-INF/views/header.jsp" /> | |
<put-attribute name="content" value="" /> | |
<put-attribute name="footer" value="/WEB-INF/views/footer.jsp" /> | |
</definition> | |
<definition name="home" extends="template2"> | |
<put-attribute name="home" value="/WEB-INF/views/home.jsp" /> | |
</definition> | |
<definition name="first_page" extends="template.mytemplate"> | |
<put-attribute name="content" value="/WEB-INF/views/firstPageContent.jsp" /> | |
</definition> | |
<definition name="second_page" extends="template.mytemplate"> | |
<put-attribute name="content" value="/WEB-INF/views/secondPageContent.jsp" /> | |
</definition> | |
</tiles-definitions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment