Multipart Request cos jar Multipart Request Multipart Request











![테이블 작성 � [member] 테이블 수정 -쇼핑을 하는 사용자 의 정보를 가짐 alter table 테이블 작성 � [member] 테이블 수정 -쇼핑을 하는 사용자 의 정보를 가짐 alter table](https://slidetodoc.com/presentation_image_h2/7fa4c58e68c02e5d7f8a2eb3b6070191/image-12.jpg)
![테이블 작성 � [manager] 테이블 생성 - 쇼핑몰의 관리자 정 보를 저장 create table 테이블 작성 � [manager] 테이블 생성 - 쇼핑몰의 관리자 정 보를 저장 create table](https://slidetodoc.com/presentation_image_h2/7fa4c58e68c02e5d7f8a2eb3b6070191/image-13.jpg)
![테이블 작성 � [book] 테이블 생성 -상품에 대한 정보를 가짐 create table book( book_id 테이블 작성 � [book] 테이블 생성 -상품에 대한 정보를 가짐 create table book( book_id](https://slidetodoc.com/presentation_image_h2/7fa4c58e68c02e5d7f8a2eb3b6070191/image-14.jpg)
![테이블 작성 � [bank] 테이블 생성-결제계좌에 대한 정보를 가짐 create table bank( account varchar(30) 테이블 작성 � [bank] 테이블 생성-결제계좌에 대한 정보를 가짐 create table bank( account varchar(30)](https://slidetodoc.com/presentation_image_h2/7fa4c58e68c02e5d7f8a2eb3b6070191/image-15.jpg)
![테이블 작성 � [cart] 테이블 생성-장바구니 역할 create table cart( cart_id int not null 테이블 작성 � [cart] 테이블 생성-장바구니 역할 create table cart( cart_id int not null](https://slidetodoc.com/presentation_image_h2/7fa4c58e68c02e5d7f8a2eb3b6070191/image-16.jpg)
![테이블 작성 � [buy] 테이블 생성-사용자가 구매한 상품에 대한 정보를 가짐 create table buy( 테이블 작성 � [buy] 테이블 생성-사용자가 구매한 상품에 대한 정보를 가짐 create table buy(](https://slidetodoc.com/presentation_image_h2/7fa4c58e68c02e5d7f8a2eb3b6070191/image-17.jpg)



















- Slides: 36
파일 업로드 � 파일업로드 및 폼 요소를 처리하는 Multipart. Request 클래스 � cos. jar파일은 파일업로드 및 폼 요소를 처리하는 Multipart. Request 클래스를 제공 � Multipart. Request 클래스의 생성자 Multipart. Request(javax. servlet. http. Http. Servlet. Request request, java. lang. String save. Directory, //파일 업로드할 폴더 int max. Post. Size, //업로드 할 파일의 최대크기 java. lang. String encoding, //인코딩방식 File. Rename. Policy policy) //기본 보안 적용
테이블 작성 � [member] 테이블 수정 -쇼핑을 하는 사용자 의 정보를 가짐 alter table member address varchar(100) not null; alter table member add tel varchar(20) not null; update member set address='서울시 마포구 양화로 6길 9', tel='010 -1111' where id='aaaa@king. com'; update member set address='인천시 남동구 정각로 29', tel='010 -2222 -1234' where id='hongkd@aaa. com'; update member set address='경기도 구리시 아차산로 439', tel='010 -3333' where id='kingdora@dragon. com';
테이블 작성 � [manager] 테이블 생성 - 쇼핑몰의 관리자 정 보를 저장 create table manager( manager. Id varchar(50) not null primary key, manager. Passwd varchar(16) not null ); insert into manager(manager. Id, manager. Passwd) values('bookmaster@shop. com', '123456');
테이블 작성 � [book] 테이블 생성 -상품에 대한 정보를 가짐 create table book( book_id int not null primary key auto_increment, book_kind varchar(3) not null, book_title varchar(100) not null, book_price int not null, book_count smallint not null, author varchar(40) not null, publishing_com varchar(30) not null, publishing_date varchar(15) not null, book_image varchar(16) default 'nothing. jpg', book_content text not null, discount_rate tinyint default 10, reg_datetime not null );
테이블 작성 � [bank] 테이블 생성-결제계좌에 대한 정보를 가짐 create table bank( account varchar(30) not null, bank varchar(10) not null, name varchar(10) not null ); insert into bank(account, bank, name) values('11111 -11111', '내일은행', '오내일');
테이블 작성 � [cart] 테이블 생성-장바구니 역할 create table cart( cart_id int not null primary key auto_increment, buyer varchar(50) not null, book_id int not null, book_title varchar(100) not null, buy_price int not null, buy_count tinyint not null, book_image varchar(16) default 'nothing. jpg' );
테이블 작성 � [buy] 테이블 생성-사용자가 구매한 상품에 대한 정보를 가짐 create table buy( buy_id bigint not null , buyer varchar(50) not null, book_id varchar(12) not null, book_title varchar(100) not null, buy_price int not null, buy_count tinyint not null, book_image varchar(16) default 'nothing. jpg', buy_datetime not null, account varchar(50) not null, delivery. Name varchar(10) not null, delivery. Tel varchar(20) not null, delivery. Address varchar(100) not null, sanction varchar(10) default '상품준비중' );