목록공부/JSP (3)
컴퓨터는 잘못이 없다..

[예제코드 프로젝트 구조] [예제코드 목표] ①다음의 뉴스탭 -> 뉴스를 들어가보았다. 웹브라우저가 요청하고 있는 경로를 보자. 그 후 웹브라우저 -> 우클릭 -> 페이지 원본보기를 눌러보자! ② 경로를 보면 html파일을 요청하지도 않았는데 html을 response받은 것을 알 수 있다. ③우리도 hello요청 링크를 클릭하였을 때 ④즉, 순수요청경로 hello를 요청했을 때 html format string을 java로 응답할 수 있도록 만들어보자! ⑤HelloServlet 클래스에서 /hello요청에 대해 어떤 내용을 응답할지에 대한 설계도를 작성해보자. [예제코드] index.html 인덱스 페이지 입니다. hello요청 ya요청 HelloServlet.java package test.servl..

[예제코드 프로젝트 구조] [예제코드] index.html 나의 웹페이지 게임하러가기 게임하러가기2 피아노 치러가기 game.html 인덱스로 돌아가기 piano.html 피아노 페이지 입니다. 절대경로로 인덱스로 가기 상대 경로로 인덱스로 가기2 index.html 실행결과 index.html에서 게임하러가기, 게임하러가기2 클릭 시 이동 화면 index.html에서 피아노 치러가기 클릭 시 이동 화면 [예제코드 설명] 01. 절대경로와 상대경로, Context path, 404오류 ┌index.html ▲상대경로는 현재 경로를 기준으로 한 경로이다, 절대 경로는 Context path부터 적어준다. ▲절대 경로에서 /Hello 는 Context path 즉, Project명을 의미한다. /Hello ..

[이클립스 & JDK 설치하기] sjy1218vv.tistory.com/62 [JAVA]JDK와 Eclipse 설치하기 [JDK설치] -> www.oracle.com/index.html 접속 -> 설치 후 버전확인은 cmd창에서 java-version 그림으로 설치과정 확인하기 [Eclipse 설치] -> www.eclipse.org/접속 그림으로 설치과정 확인하기 ->아래 그림에.. sjy1218vv.tistory.com [jsp(서버프로그래밍) 한글 인코딩 설정] 1.Window -> Preferences 클릭 2.enc 입력해서 encoding설정을 검색 3.인코딩 설정 [Apache Tomcat 서버 설정] https://tomcat.apache.org/download-80.cgi Apache T..