728x90
<?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";
return "shopping/products"
-->
<definition name="*/*" extends="tiles-layout">
<put-attribute name="body" value="/WEB-INF/views/{1}/{2}.jsp" />
</definition>
</tiles-definitions>
'Spring > Spring Muzi' 카테고리의 다른 글
Spring Controller(콘트롤러) 주고받는 방식 (0) | 2023.08.02 |
---|---|
e7e샘의 파일 업로드 원본 (0) | 2023.08.01 |
root-context.xml(설정파일) (0) | 2023.07.31 |
log4j.xml(설정파일) (0) | 2023.07.31 |
web.xml설정파일 (0) | 2023.07.31 |