KIC
-
day55 - JSP(공지사항 페이지 )KIC/JSP 2021. 9. 2. 02:21
[BoardDao.java] package dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import model.Board; import util.DBConnection; public class BoardDao { public boolean insert(Board board) { Connection conn = DBConnection.getConnection(); PreparedStatement pstmt = null; ResultSet r..
-
day54 - JSP(공지사항 페이지)KIC/JSP 2021. 9. 1. 01:16
[BoardController,java] package controller; import java.io.IOException; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.oreilly.servlet.MultipartRequest; import dao.BoardDao; import dao.MemberDao; import model.Board; import model.Member; public class BoardController extends Action..
-
day53 - JSP(사진 추가 페이지)KIC/JSP 2021. 8. 31. 00:10
[photoFrom.jsp] 사진 photo 폴더 생성 (f5) 업로드 [photoPro.jsp]
-
day51 - JSP(model2, login)KIC/JSP 2021. 8. 26. 22:49
[memberInput] 회원가입 사진등록 아이디 비밀번호 이름 성별 남 여 전화번호 이메일 [memberDao] package dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import model.Member; import util.DBConnection; public class MemberDao { public int memberInsert(Member m..
-
day50 - JSP(model2, login, DBconnection)KIC/JSP 2021. 8. 26. 03:45
[MemberController.java] package controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import dao.MemberDao; import model.Member; public class MemberController extends Action{ // /kicPro/member/hello public String hello(HttpServletRequest request, HttpServletResponse response) throws Exception { // TODO Auto-generated method stub request.setAttri..
-
day49 - JSP(model2)KIC/JSP 2021. 8. 25. 01:27
web.xml 에서 controllerExt *.do 를 통해 *.do를 받으면 controllerExt와 연동한다. [controllerExt.properties] -> hello.do를 입력할 시 /hello.do=handler.HelloHandler /list.do=handler.ListHandler /memberInput.do=handler.MemberInputHandler [helloHandler.java] -> /view/hello.jsp 가 실행되고, package handler; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import controller.CommandH..