728x90
-- tiles 참고 페이지 --
-> 메뉴에 Documentation
-> Tiles 3.0x
-> Tutorial
-> Creating Tiles Pages
-> 이용
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<html>
<head>
<title><tiles:getAsString name="title"/></title>
</head>
<body>
<table>
<tr>
<td colspan="2">
<tiles:insertAttribute name="header" />
</td>
</tr>
<tr>
<td>
<tiles:insertAttribute name="menu" />
</td>
<td>
<tiles:insertAttribute name="body" />
</td>
</tr>
<tr>
<td colspan="2">
<tiles:insertAttribute name="footer" />
</td>
</tr>
</table>
</body>
</html>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
"http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
<tiles-definitions>
<definition name="myapp.homepage" template="/layouts/classic.jsp">
<put-attribute name="title" value="Tiles tutorial homepage" />
<put-attribute name="header" value="/tiles/banner.jsp" />
<put-attribute name="menu" value="/tiles/common_menu.jsp" />
<put-attribute name="body" value="/tiles/home_body.jsp" />
<put-attribute name="footer" value="/tiles/credits.jsp" />
</definition>
</tiles-definitions>
728x90
'SPRING' 카테고리의 다른 글
[Spring] 오라클(Oracle) 연동 (Eclipse) (0) | 2022.05.11 |
---|---|
[Spring] tiles ViewResolver 설정하기 (0) | 2022.05.11 |
[Spring] tiles 지시서 작성하기2 (와일드카드이용) (0) | 2022.05.11 |
[Spring] tiles 지시서 작성하기1 (Eclipse) (0) | 2022.05.11 |
[Spring] DataSource 이용 (0) | 2022.05.11 |