webpage13_02.jsp
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<title>Validation</title>
</head>
<body>
<h3>유효성 검사</h3>
<form:form modelAttribute="member" method="post">
<p>아이디 : <form:input path="memberId"/> <form:errors path="memberId"/>
<p><input type="submit" value="확인"/>
<input type="reset" value="취소"/>
</form:form>
</body>
</html>
▲ 그림 13-5 실행 결과