SiteMesh - hyunwoo-e/Spring GitHub Wiki
출처: http://javacan.tistory.com/entry/131
https://kimpaper.github.io/2015/10/28/spring-sitemesh-setting/
<%@ page language=”java” contentType=”text/html; charset=UTF-8” pageEncoding=”UTF-8”%>
<%@ taglib prefix=”decorator” uri=”http://www.opensymphony.com/sitemesh/decorator”%>
<%@ taglib prefix=”page” uri=”http://www.opensymphony.com/sitemesh/page” %> <!DOCTYPE html>
<decorator:head /> 적용되는 대상 페이지에서 <head> 의 내용을 가져다 붙임
<page:applyDecorator name="top" /> top의 decorator를 가져와 붙임
<page:applyDecorator name="left" /> left의 decorator를 가져와 붙임
<decorator:body /> 적용되는 대상 페이지에서 <body> 의 내용을 가져와 붙임
head.jsp, body.jsp와 같이 원하는 jsp에 <head> <body>를 구성하면 layout.jsp의 형식으로 출력