수업 문제(국비 지원)/JSP

[JSP] 2022.10.12 (idForm, pwForm, id, pw, passwordForm, password 페이지에 sitemesh의 layout 부분 제거하기.)

byeolsub 2023. 4. 29. 22:06
문제 : idForm, pwForm, id, pw, passwordForm, password 페이지에 
       sitemesh의 layout 부분 제거하기.

 

📌 SiteMeshFilter.java 수정하기.

//- addExcludedPath("/member/memberimg*") 
//      : url이 /member/memberimg로 시작하는 경우 layout.jsp 페이지 적용 안함.
public class SiteMeshFilter extends ConfigurableSiteMeshFilter {
	@Override
	protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
		builder.addDecoratorPath("/*","/layout/layout.jsp")
		.addExcludedPath("/member/memberimg*")
		.addExcludedPath("/member/idForm*")
		.addExcludedPath("/member/pwForm*")
		.addExcludedPath("/member/id*")
		.addExcludedPath("/member/pw*")
		.addExcludedPath("/member/passwordForm*")
		.addExcludedPath("/member/password*");
		
	}
}