입력되었습니다, 수정되었습니다 등등 메시지 처리도 쉽게 할 수 있다.

일단 메시지는 message-common_ko_KR.properties에 정의되어 있다.

Controller에서 세팅을 해준다.
String resultMsg = egovMessageSource.getMessage("success.common.update");
mv.addObject("resultMsg", resultMsg);

jsp에선 다음과 같이 적어주면..
<c:if test="${!empty resultMsg}"><script type="text/javascript">alert("<c:out value='${resultMsg}'/>");</script></c:if>

끝!!!

근데 왜 메시지정의가 내 놋북에선 코드값으로 변형되서 나올까.. utf-8로 세팅해도 마찬가지인데..허헣
AND