일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 라우터
- ciscopacket
- sql
- html
- cisco packet
- ospf
- 자바
- rinux
- 데이터베이스
- 리눅스
- 정보처리기사
- autoset
- VLAN
- 정처기필기
- Cisco
- 네트워크관리사
- Oracle
- w3school
- jsp연결
- jsp
- NCS
- 버추얼머신
- javaee
- php
- 참조타입
- 이것이 자바다
- 오라클
- 네트워크
- 원형그래프
- Java
- Today
- Total
목록JAVA/JSP (18)
기록해! 정리해!

- 서블릿보기 eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\jsp0717\org\apache\ jsp : include 는 파일이 하나로 합쳐져서 컴파일 된다. out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.print("TOP" ); out.write("\r\n"); out.write(""); out.write("\r\n"); out.write("\r\n"); out.write("오늘 날..

1. 싱글톤 데이터베이스 생성 package hrd; import java.sql.*; public class DBConnection { Connection con = null; PreparedStatement stmt =null; ResultSet rs = null; String url = "jdbc:oracle:thin:@//localhost:1521/xe"; String userId = "system"; String pass = "1234"; //싱글톤 패턴으로 객체생성 private static DBConnection db=new DBConnection(); private DBConnection(){} public static DBConnection getInstance() { return db;..

07/21 + 마지막 학번 추가하기 1. 메소드 추가하기 ExamtblService 랑 ExamtblDao에 int sno(); 추가하기 2. Impl에 메소드 추가하기 1)Service @Override public int sno() { return dao.sno(); } 2)Dao private static final String SNO_SQL = "select max(sno)+1 as sno from Examtbl "; . . . @Override public int sno() { int sno =0; try { conn = DBConnection.getConnection(); pstmt = conn.prepareStatement(SNO_SQL); rs = pstmt.executeQuery(); r..

1. 구조 2. ExamtblDao package DBPKG.dao; import java.util.List; import DBPKG.ExamtblVo; public interface ExamtblDao { void insert(ExamtblVo vo); void update(ExamtblVo vo); void delete(String sno); List selectAll(); ExamtblVo edit(String sno); } 3. DaoImpl 쿼리문 (insert, update, delete, select, edit) + 데이터베이스 커넥션 , try-catch package DBPKG.dao; import java.sql.*; import java.util.*; import DBPKG.*; pu..

- 제목에 링크걸어서 누르면 delete 되고 (이게 되려나...) - 글쓰기 누르면 - 성공 ㅎㅅㅎ Dao를 서비스가 불러오고 컨트롤러에서 서비스를 불러오는건 점점.. 일기장이 되어가고 있는 나의 블로그

1. 구조 2. jsp 내용 적기 - index 목록보기 - result 3. 구조 4. index.jsp에 스위치를 통해 연결하기 목록보기 저장하기 - SelectController String sw = request.getParameter("sw"); System.out.println(" ====> " + sw); 5. Insert 값 넣기 1) index 에, 저장하기 2) BoardVo 에, private int idx; private String title; private String name; 하고 게터세터, 투 스트링 3) InsertController String sw = request.getParameter("sw"); int idx = Integer.parseInt(request.get..