Programming(122)
-
L03 서블릿 메소드(1/2)
**배운 내용** 1) doGet vs. doPost doGet: URL 방식으로 정보가 전달되므로 보안에 취약(검색에 이용됨) doPost: header 이용해 정보 전달되므로 보안에 강함(로그인에 주로 이용됨) 2) doGet, doPost 호출: 호출 주소/방식 지정 + submit 버튼 추가 ID: 3) 제출시 전송된 parameter 받기 String id = request.getParameter("id"); 4) response, request 객체 메소드 정리 Request Response getContextPath() getSession() getProtocol() getRequestURL() getQueryString() getCharacterEncoding() addCookie(쿠키명)..
2016.10.25 -
L02 JSP 작성
**배운 것** 1. JSP의 동작 원리 2. 스크립트 종류 1) : java 사용2) : 메소드, 필드 정의3) : 결과값 출력4) : 페이지 속성 3. 액션 태그 형식 4. DAO vs. DTODAO(Data Access Object): DB에 접근해 데이터 추가,삭제,수정하는 클래스DTO(Data Transfer Object): 데이터 넘겨주는 클래스 5. FrontController vs. Command 패턴 비교 1234567891011121314151617181920212223242526272829303132333435363738394041 Insert title here Java Servlet Page jsp Hello jsp(자바 서블릿 페이지)는 WebContent 폴더에 등록되는 서블릿..
2016.10.25 -
L01 서블릿 작성
**배운 것** 1. MVC 모델 2. 서블릿 주소 매핑법 2가지 1) @WebServlet("/주소") 2) web.xml에 등록 1 2 3 4 5 6 7 8 9 10 list com.jsp.source.MemberList list /MemberList Colored by Color Scripter cs 3. doGet, doPost 메소드 역할: 브라우저로부터 요청(request) 받아 응답(response) 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 import java.io.IOException; import javax.servlet.ServletException; import javax.servlet..
2016.10.25 -
CSS 기본
CSS(Cascading Style Sheets;스타일 시트): HTML을 꾸며주는 기능을 제공꾸미는 부분만 독립시켜 처리하므로HTML의 가독성이 유지됨 1) style 태그를 cs 2) CSS 파일 작성 OR CSS 링크 찾기 3) 태그 안에 href(CSS 주소), type(HTML과 링크하는 데이터 종류), rel(Relationship btw HTML and CSS) 순으로 적어줌 1) 헤더(h1)의 색을 Black으로, 문단(p)의 폰트 크기를 18px로 맞추자 1234567h1 { color: Black;}p { font-size: 18px;}cs 1) display: 같은 페이지 내 HTML 요소와의 배치 관계 설정ex. display: inline; => 2) float: 왼쪽/오른쪽에 적..
2016.10.18 -
Command Line 기본
pwd outputs the name of the current working directory.ls 'lists' all files and directories in the working directory.cd (change directory): switches you into the directory you specify.mkdir 디렉토리명 creates a new directory in the working directory.touch 파일명 creates a new file inside the working directory.
2016.10.17 -
유용한 오픈소스 웹사이트
1. HTML, CCS, JS 프레임워크 http://getbootstrap.com/ 2. GIT(Commit, Branch 이력 추적 가능) https://bitbucket.org/dashboard/overview
2016.10.14