목록2024/01 (38)
기초공사 (html,css,javascript)
insert.jsp 소스 중 오류 stmt.executeUpdate(String.format( "insert into t_board" + "(btitle, content, reguser, regdate, hits)" + "values('%s', '%s', '%s', '%s', 0)", btitle, content, reguser, curTime)); 에서 ' %s' 아포스트로피하나를 빼먹어서 ORA-01756: 단일 인용부를 지정해 주십시오 에러가 났었음.
// JDBC (java database connectivity) java프로그램과 데이터베이스를 연결하는 자바API이다. JDBC를 사용하면 JAVA 애플리케이션에서 데이터베이스에 접속하여 데이터를 읽고 쓸수있다. 데이터베이스는 구조화된 데이터를 저장하고 관리하는 시스템이며, 일반적으로 관계형 데이터베이스(RDBMS)를 의미한다. RDBMS는 테이블과 열로 구성된 데이터를 SQL을 사용하여 관리한다. JDBC를 사용하면 JAVA애플리케이션과 RDBMS사이에서 데이터를 주고받는다. Connection 생성 Connection - 데이터베이스와 연결하는 객체입니다. DriverManager.getConnection(연결문자열, DB_ID, DB_PW) 으로 Connection 객체를 생성합니다. 연결문자열..
아래사이트가 자세히 잘 설명해준다. https://barnabas-kim8618.tistory.com/107?category=1003408 3/2 Java 객체지향프로그래밍 문법 #3 # 클래스 클래스? 우리가 계속 만들었던 파일이다. 클래스라는 파일이다. 이게 무엇일까? 설계도라고 한다! 우리가 클래스 파일을 만들떄 무엇을 만드냐면? .java 파일을 만들떄 내가 만약에 Dog라는 클래스 barnabas-kim8618.tistory.com
https://hongong.hanbit.co.kr/%EC%9E%90%EB%B0%94-%EC%A0%91%EA%B7%BC-%EC%A0%9C%ED%95%9C%EC%9E%90%EC%9D%98-%EC%A2%85%EB%A5%98%EC%99%80-%EC%B0%A8%EC%9D%B4public-protected-private/ 자바 접근 제한자의 종류와 차이(public, protected, private) : 예제 다운로드 자바 코딩할 때 가장 많이 보았던 public과 private의 차이점이 무엇인지 모르고 넘어갔던 분들을 위해 접근 제한자 또는 접근 제어자에 대해 간단히 표로 정리했습니다. 포스팅 하단에서 예제와 용 hongong.hanbit.co.kr public과 private의 의미 위의 사이트 참고 접근..
// 인증시작 중단 여기에서 on클래스를 추가삭제는 알았는데 function stop_verify( ) 함수에 넣으니 on의속(바탕색)성이 자꾸 사라져서 디버깅을 보니 stop_verify();가 곳곳에 있다보니 나왔다 사라지고 했다. 그래서 따로 함수를 만들어서 function stop_verify_short()를 만들어서 stop_verify(); 을 호출하고, 중단버튼을 클릭 할때만 $('.hvr-ripple-out').removeClass('on')이것이 적용하도록 했다. 안선임이 도와줌;; function stop_verify_short(){ stop_verify(); $('.hvr-ripple-out').removeClass('on'); }
//DAO Data Access Object 의 약자로 "데이터베이스에 접근하는 객체" 라는뜻, DAO를 구현하지 않으면 서비스 로직부분과 DB에 접근하는 부분이 한 파일(servlet)에 작성된다. 이러한 방법은 객체지향1원칙인 단일책임의 원칙을 위배하게 되므로, 루틴을 분리하여 작성해야 한다. (하나의 클래스는 하나의 기능만을 제공하라는 의미이다) DAO는 개발자가 select(),insert(), update(),delete()와 같은 연산들에 대한 인터페이시를 미리 정해놓음으로써 데이터에 대한 처리를 간단하게 할 수 있도록 도와준다. //DTO Data Transfer Object의 약자이다. DTO는 전송의 이미보다는 사실 DB에 존재하는 테이블의 데이터를 저장하는 객체라는 뜻에 가깝다. 예를들..
board폴더를 붙일떄 나는 오류 the superclass"java.servlet.http.HttpServle", determined from the Dynamic Web Module facet verison (3,1), was not found on the java build path