그 외의 요청정보 출력
- URI, URL, PATH, Remote host 등에 대한 정보 출력
- http://localhost:8080/firstweb/info
- package name : examples
- class name : InfoServlet
- url mapping : /info
InfoServlet을 만들어준다.

URL mapping은 /info로 변경해준다.

코드를 작성 후 실행한다.

* contextPath : 웹 어플리케이션과 매핑된 path
실행 결과

참고 : boostcourse https://www.boostcourse.org/web316/lecture/254279?isDesc=false
웹 프로그래밍(풀스택)
부스트코스 무료 강의
www.boostcourse.org
'boostcource > boostcourse_web programming' 카테고리의 다른 글
| [JavaScript] 자바스크립트 (javascript) (0) | 2024.04.10 |
|---|---|
| (boostcourse) 자기소개 페이지 (0) | 2024.04.10 |
| Request / Response -2 (0) | 2024.04.09 |
| Request / Response -1 (0) | 2024.04.09 |
| HttpServletRequest / HttpServletResponse (0) | 2024.04.09 |