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>
'DEV' 카테고리의 다른 글
[JAVA] XSS 필터 (0) | 2020.06.29 |
---|---|
[eclipse] 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener (0) | 2020.06.29 |
[PostgreSQL] 정규식으로 문자 제거 (0) | 2020.06.18 |
[PostgreSQL] PostGIs에서 공간 테이블 좌표변환 (0) | 2020.05.20 |
[Linux] 서버간 공유폴더 설정하기 (0) | 2019.03.28 |