SPRING_SETTING/spring
spring form tag
우혁이 아빠
2011. 1. 23. 16:21
* form 객체 이름
HTML - <form name="이름"/>
Spring - <form:form commandName="이름"/>
=> commandName은 HTML렌더링 후 id가 되므로 getElementById()를 사용해서 참조할 수 있다.
* input 객체 이름
HTML - <input name="이름"/>
Spring - <form:input path="이름"/>
=> HTML의 input 태그도 <form:form> 태그 안에 있으면 input의 name이 커맨드객체의 멤버변수로
맵핑 가능하다.
* CSS 스타일 적용 (class)
HTML - <input class="textbox01"/>
Spring - <form:input cssClass="textbox01"/>
HTML - <form name="이름"/>
Spring - <form:form commandName="이름"/>
=> commandName은 HTML렌더링 후 id가 되므로 getElementById()를 사용해서 참조할 수 있다.
* input 객체 이름
HTML - <input name="이름"/>
Spring - <form:input path="이름"/>
=> HTML의 input 태그도 <form:form> 태그 안에 있으면 input의 name이 커맨드객체의 멤버변수로
맵핑 가능하다.
* CSS 스타일 적용 (class)
HTML - <input class="textbox01"/>
Spring - <form:input cssClass="textbox01"/>
http://blog.naver.com/jjhstr?Redirect=Log&logNo=60103005861 ---> 퍼온곳