더북(TheBook)

    <definition name="orderCustomerInfo" extends="base-Template">
        <put-attribute name="title" value="Order"/>
        <put-attribute name="heading" value="고객정보"/>
        <put-attribute name="subheading" value="Customer Details"/>
        <put-attribute name="content" value="/WEB-INF/flows/order/orderCustomerInfo.jsp"/>
    </definition>

    <definition name="orderShippingInfo" extends="base-Template">
        <put-attribute name="title" value="Order"/>
        <put-attribute name="heading" value="배송정보"/>
        <put-attribute name="subheading" value="Shipping Details"/>
        <put-attribute name="content" value="/WEB-INF/flows/order/orderShippingInfo.jsp"/>
    </definition>

    <definition name="orderConfirmation" extends="base-Template">
        <put-attribute name="title" value="Order"/>
        <put-attribute name="heading" value="주문정보"/>
        <put-attribute name="subheading" value="Order Confirmation"/>
        <put-attribute name="content" value="/WEB-INF/flows/order/orderConfirmation.jsp"/>
    </definition>

    <definition name="orderFinished" extends="base-Template">
        <put-attribute name="title" value="Order"/>
        <put-attribute name="heading" value="주문완료"/>
        <put-attribute name="subheading" value="Thanks you"/>
        <put-attribute name="content" value="/WEB-INF/flows/order/orderFinished.jsp"/>
    </definition>

    <definition name="orderCartWarning" extends="base-Template">
        <put-attribute name="title" value="Order"/>
        <put-attribute name="heading" value="주문취소"/>
        <put-attribute name="subheading" value="Invalid Cart"/>
        <put-attribute name="content" value="/WEB-INF/flows/order/orderCartWarning.jsp"/>
    </definition>
</tiles-definitions>

<definition> 요소의 템플릿 이름을 orderCustomerInfo, orderShippingInfo, orderConfirmation, orderFinished, orderCartWarning으로 정의합니다. 각 뷰 페이지는 <definition> 요소 내 extends 속성을 사용하여 기본 템플릿 페이지 base-Template 형식을 그대로 따릅니다. 그리고 <put-attribute> 요소를 사용하여 기본 템플릿 구성 내용을 변경합니다.

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.