시퀀스 만들기, board table 만들기
CREATE SEQUENCE BOARD_SEQ START WITH 1 INCREMENT BY 1 MAXVALUE 9999999999999999999999 NOMINVALUE NOORDER NOCYCLE NOCACHE; -- 또다른 maxvalue 무한설정 CREATE SEQUENCE BOARD_SEQ START WITH 1 INCREMENT by 1 NOMAXVALUE nocache; create table board( num number primary key, writer varchar2 (20), email varchar2(50), subject varchar2(50), password varchar2(10), reg_date Date, ref number, ref_step number, ref_level number, readcount number, content varchar2(500) );
server.xml
<Context docBase="Board" path="/Board" reloadable="true" source="org.eclipse.jst.jee.server:Board"> <Resource name="jdbc/pool" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" loginTimeout="10" maxWait="5000" username="system" password="1111" url="jdbc:oracle:thin:@localhost:1521:XE" /> </Context>
class BoardBean
package model; public class BoardBean { private int num; private String writer; private String email; private String subject; private String password; private String reg_date; private int ref; private int re_step; private int re_level; private int readcount; private String content; public int getNum() { return num; } public void setNum(int num) { this.num = num; } public String getWriter() { return writer; } public void setWriter(String writer) { this.writer = writer; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getReg_date() { return reg_date; } public void setReg_date(String reg_date) { this.reg_date = reg_date; } public int getRef() { return ref; } public void setRef(int ref) { this.ref = ref; } public int getRe_step() { return re_step; } public void setRe_step(int re_step) { this.re_step = re_step; } public int getRe_level() { return re_level; } public void setRe_level(int re_level) { this.re_level = re_level; } public int getReadcount() { return readcount; } public void setReadcount(int readcount) { this.readcount = readcount; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Override public String toString() { return "BoardBean [num=" + num + ", writer=" + writer + ", email=" + email + ", subject=" + subject + ", password=" + password + ", reg_date=" + reg_date + ", ref=" + ref + ", re_step=" + re_step + ", re_level=" + re_level + ", readcount=" + readcount + ", content=" + content + "]"; } }
동영상 강좌와 다르게 모바일 적용이 가능한 반응형 부트스트랩을 사용하였다.
여기서는 jsp 를 배우는 강좌 이기 때문에 html 적 요소에는 비중있게 생각 하지 않아도 될 것이다.
소스 : https://github.com/braverokmc79/jsp_sin
유튜브 동영상 출처 :
강사 : 신형섭(잭임연구원)
저작권 : (주)소프트캠퍼스 http://www.softcampus.co.kr 더많은 무료 강의는 사이트에서 확인하실수 있습니다.
댓글 ( 4)
댓글 남기기