반응형

Struts2 에서 struts.xml 의 action에
파라미터 값을 전달하여 처리하고 싶다면..

먼저 해당 클래스에 변수를 설정하고
getter를 만들어 주면
struts.xml 에서 사용할 수 있습니다.

변수 선언 및 getter 생성
private String redirectUrl;

public String getRedirectUrl() {
	return redirectUrl;
}


struts.xml 에서 사용

	/user/login.do?redirectUrl=${redirectUrl}



작게나마 도움 되시길 ^^
반응형

+ Recent posts