JSP : URI/ ContextPath/ URL/ServletPath의 차이점
servlet을 만들던중 URL, URI, ContextPath, ServletPath의 차이가 뭔가 싶어서 콘솔창에 일단 찍어보기로 했다. 1. URI System.out.println("URI : " + request.getRequestURI()); ----> /JSP/member/list.do : 프로젝트에서부터 현재 페이지를 부른 servlet주소까지 2. ContextPath System.out.println("contextPath : " + request.getContextPath()); ----> /JSP : 프로젝트명 3. URL System.out.println("URL : " + request.getRequestURL()); ----> /http://localhost/JSP/member..
Server
2019. 12. 31. 20:08