일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- http://jeonghwan-kim.github.io/dev/2019/06/25/react-ts.html
- 출처 : https://joshua1988.github.io/web-development/javascript/promise-for-beginners/
- 게시판
- toString
- https://velog.io/@velopert/create-typescript-react-component
- 출처 : https://webdir.tistory.com/506
- object
- Today
- Total
목록 JSP/게시판 만들기 (24)
Back Ground
package action; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public interface Action { public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException; //request영역의 request 와 response 를 사용을 인터페이스로 만든다. }
자동생성 -Servlet //자동생성으로 만들어진 Servlet package controller; import java.io.IOException;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse; @WebServlet("/BoardServlet")public class BoardServlet extends HttpServlet {private static final long ser..
자바스크립트 제어 function boardcheck(){if(document.frm.name.value.length ==0){ //문서의 frm(form 이름)에 name의 값의 글 길이가 0 이라면 alert("작성자를 입력하세요.");return false; //값을 false로 넘겨서 그 실행이 넘어가지 못하게 한다}if(document.frm.pass.value.length ==0){alert("비밀번호를 입력하세요.");return false;}if(document.frm.title.value.length ==0){alert("제목을 입력하세요.");return false;}return true; //위 사항이 해당되지 않을때 true를 줘서 실행 가능하게 한다.} function open_w..
package pdh.DAO; import java.sql.Timestamp; public class BoardVO { int num; String name; String email; String pass; String title; String content; int readcount; Timestamp writedate; public int getNum() { return num; } public void setNum(int num) { this.num = num; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return em..
package pdh.DAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import util.DBManager; public class BoardDAO { //기본 생성자 private BoardDAO(){} //싱글톤 private static BoardDAO instance= new BoardDAO(); public static BoardDAO getInstance(){ return instance; } //========================================================..
MySQL -DBCP server ------------------------------------------------------------------------------------------------------------------------------------------------- # DBCP ( DataBase Connection Pool ) - 웹페이지에 접속자 수가 많아졌을 때 그만큼의 오라클 접속요청을 수용 할 수 있게 데이터베이스의 효율성과 속도를 높이기 위해 사용.- 동시접속자 과다로 서버가 다운될 수 있는 문제점을 해결하기 위해 존재함. - DBCP 매니저가 어느 정도의 연결을 확보해 놓고 있다가 클라이언트의 요청이 들어오면 연결 해 주고, 클라이언트 작업이 다 끝나면 연결을 다..
package util; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statement; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; public class DBManager { //Connection Context JDBC SQL 연결 부분 public static Connection getConnection(){ Connection conn = null; try{ //MySQL 연결 Context initContext = new InitialContext(); Context envContext = ..
create table boardtest1( num int not null auto_increment primary key, name varchar(30) not null, email varchar(30) not null, pass varchar(30), title varchar(30), content varchar(50), readcount numeric(4) default 0, writedate date ); -auto_increment : insert into로 추가 될때 자동으로 숫자가 오른다. 오라클에서는 create squence board_seq( squence 이름 ) start with 1 increment by 1; 를 사용 하여야 한다. -int , varchar : 상수, 문자 오라..