웹 플로우가 적용된 JSP 뷰 페이지 수정하기
1. 타일즈 정의 파일 tiles.xml에 주문 처리 뷰 페이지를 추가로 작성합니다.
코드 16-19 tiles.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-definitions>
<definition name="base-Template" template="/WEB-INF/tiles/template/baseLayout.jsp">
<put-attribute name="title" value="Sample Title"/>
<put-attribute name="heading" value=""/>
<put-attribute name="subheading" value=""/>
<put-attribute name="menu" value="/WEB-INF/tiles/template/menu.jsp"/>
<put-attribute name="content" value=""/>
<put-attribute name="footer" value="/WEB-INF/tiles/template/footer.jsp">
</definition>
...
<definition name="cart" extends="base-Template">
<put-attribute name="title" value="Shopping Cart"/>
<put-attribute name="heading" value="장바구니"/>
<put-attribute name="subheading" value="Shopping Cart"/>
<put-attribute name="content" value="/WEB-INF/views/cart.jsp"/>
</definition>