본문 바로가기

DEV

sitemesh 설정 (exclude 처리 포함)

web.xml

<filter>
	<filter-name>sitemesh</filter-name>
	<filter-class>org.sitemesh.config.ConfigurableSiteMeshFilter</filter-class>
</filter>
<filter-mapping>
	<filter-name>sitemesh</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>

 

sitemesh.xml

<sitemesh>
	<mapping path="*.do" decorator="/WEB-INF/views/deco/deco.jsp"/>
	<mapping path="/mng/*.do" decorator="/WEB-INF/views/deco/mng.jsp"/>
	<mapping path="/mng/viewLogin.do" exculde="true"/>
</sitemesh>

 

pom.xml

<dependency>
	<groupId>org.sitemesh</groupId>
	<artifactId>sitemesh</artifactId>
	<version>3.0.0</version>
</dependency>