Oct
04
2008
Tiles definitions
In your WEB-INF directory, add a tiles.xml file in which you will define tiles.
XML:
-
"-//Apache Software Foundation//DTD
Tiles Configuration 2.0//EN"
-
"http://struts.apache.org/dtds/
tiles-config_2_0.dtd"
>
-
-
<definition name="header" template="/fragments/header.jsp">
-
</definition>
-
See tiles doc for more info
Jsp usage
In your jsp, include the tiles tag lib and insert the definition.
JAVA:
-
<@ taglib uri=
"/WEB-INF/tiles-jsp.tld" prefix=
"tiles">
-
<
tiles:insertdefinition name=
"header">
-
</
tiles:insertdefinition>
Pages: 1 2 3 4
Leave a Reply