관련 jsp파일 상단에 작성 후 사용 가능. commandName 은 VO를 말하는 것. name은 VO내의 속성을 말함 이렇게 연결하면 VO 객체의 getter, setter에 자동으로 연결되어 값을 알아서 설정해주므로 매우 편하다. (+) 예시 여러 행을 bean 객체 배열로 Form submit하여 전달하고 싶을 경우 유용하다. 다음과 같은 화면 있다. eat.jsp Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 # 분류 간식명 냉장고 창고재고 알림 줄 1 : jsp 파일 상단에 taglib 작성 후, spring form을 사용함. comma..
Colored By Color Scripter™ 1 2 3 4 5 .... 파일 업로드시, 위와같이 enctype을 명시하지 않으면.. 아래의 에러발생. Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 심각: Servlet.service() for servlet [dispatcher] in context with path [/contest] threw exception [Request processing failed; nested exception is org.springframework.we..
Member 라는 beans 클래스다. Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 public class Member { private String id; private String pw; private String name; private int sex; // 0이면 여자 1이면 남자 private String mobile; private String email; private int dept_code; // .. getter, setter method .. } sex 속성은 int로 정의되어있다. 다음은, 회원가입 view의 form 코드 Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1..