728x90
tiles-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
"http://tiles.apache.org/dtds/tiles-config_3_0.dtd">
<!-- tiles 설정 -->
<tiles-definitions>
<!-- main layout -->
<definition name="tiles-layout" template="/WEB-INF/views/tiles/index.jsp">
<put-attribute name="header" value="/WEB-INF/views/tiles/header.jsp" />
<put-attribute name="aside" value="/WEB-INF/views/tiles/aside.jsp" />
<put-attribute name="body" value="" />
<put-attribute name="footer" value="/WEB-INF/views/tiles/footer.jsp" />
</definition>
<!-- name의 */*은 body의 value에서 1과 2에 해당
controller에서 forwarding 시 return "1/2";
-->
<definition name="*/*" extends="tiles-layout">
<put-attribute name="body" value="/WEB-INF/views/{1}/{2}.jsp" />
</definition>
</tiles-definitions>
'Spring > Spring 기초' 카테고리의 다른 글
보충수업 Boomerang(부메랑) (0) | 2023.07.28 |
---|---|
Spring 정리 (0) | 2023.07.27 |
e7e샘의 STS3(Spring Tool Suite)설치 및 (1차)환경설정 (0) | 2023.07.26 |
OpenOffice 다운로드 및 ERD그리기 (0) | 2023.07.26 |
Spring Json 및 jackson 사용(@ResponseBody ) (0) | 2023.07.24 |