2022 Term Project

Term Project

2022-1학기_자바활용설계지침서:  aj22_project

Due by 03/23 – Project Team Formation (week 4)
Group1 – 김채은, 김지민, 최승용 – 우리동네 위치기반 커뮤니티 (여행)
Group2 – 김건우, 박주희, 부재희 – 위치기반 병원 후기 웹사이트 (모두닥 참고)
Group3 – 이승현, 김원섭, 박기범 – 영화정보 웹사이트 (네이버영화/IMDB 참고)
Group4 – 신승경, 서지현, 홍찬희 – 알고리즘 웹사이트 (백준알고리즘 참고)
Group5 – 김준하, 신규철, 김용원 – 게임추천 웹사이트
Group6 – 심은기, 이솔, 김형수 – FoodLab 음식후기 웹사이트 (망고플레이트, Yelp 참고)
Group7 – 김은정, 구지원, 배지현 –  IT 이벤트 사이트 (onoffmix 참고)
Group8 – 쉬지시양, 장쯔카이
Group9 – 정영윤 – 아이돌 공식홈페이지와 팬카페커뮤니티 결합 웹사이트 (BTS weverse 참고)

Due by 04/06 – Project Proposal (week 6)
Due by 04/27 – Project Midterm Report (week 9)
Due by 05/18 – Project Progress Report (week 12)
Due by 06/08 – Project Final Presentation & Demonstration (week 15)

request.getContextPath() request.getRequestURI()

request.getContextPath() = 프로젝트 Path (컨텍스트 path) 만 가져옵니다.
예) http://localhost:8080/project/list.jsp
[return] /project

request.getRequestURI() = 프로젝트 + 파일경로까지 가져옵니다.
예) http://localhost:8080/project/list.jsp
[return] /project/list.jsp

String url = request.getRequestURI.split(“/”);
String Name = url[url.length -1]; // list.jsp 반환

request.getRequestURL() = 전체 경로를 가져옵니다. (L만 바뀜)
예) http://localhost:8080/project/list.jsp
[return] http://localhost:8080/project/list.jsp

request.ServletPath() = 파일명만 가져옵니다.
예) http://localhost:8080/project/list.jsp
[return] /list.jsp

request.getRealPath(“”) = 서버 or 로컬 웹 애플리케이션 절대경로 가져옵니다.
예) http://localhost:8080/projectname/list.jsp
[return] c:\project\webapps\projectname\

request.getScheme() = 사용하는 요청 프로토콜을 가져옵니다. https, http, ftp …
예) http://localhost:8080/project/list.jsp
[return] http

request.getServerName() = 서버이름
[return] localhost

request.getServerPort() = 서버포트
[return] 8080