JSP 페이지 이동 url 경로 


( url-pattern .do )

 WEB.INF

    - VIEW

       - index.jsp

 - notice

 - noticeList.jsp 

 - noticeInsert.jsp


- index.jsp 에서 


<a href="notice/noticeList.do">NOTICE</a>  http://localhost:8082/mogaco/notice/noticeList.do

<a href="/notice/noticeList.do">NOTICE</a>   http://localhost:8082/notice/noticeList.do

<a href="../notice/noticeList.do">NOTICE</a>  http://localhost:8082/notice/noticeList.do


- noticeList.jsp 에서 


<a href="notice/noticeList.do">NOTICE1</a> http://localhost:8082/mogaco/info/notice/notice.do

<a href="/notice/noticeList.do">NOTICE2</a>  http://localhost:8082/notice/noticeList.do

<a href="../notice/noticeList.do">NOTICE3</a> http://localhost:8082/mogaco/notice/noticeList.do 


- noticeInsert.jsp


<a href="../notice/noticeInsert.do">공지사항 인서트1</a>

<a href="noticeInsert.do">공지사항 인서트2 </a>

<a href="/notice/noticeInsert.do">공지사항 인서트3</a> http://localhost:8082/notice/noticeInsert.do  

<a href="notice/noticeInsert.do">공지사항 인서트4 </a> http://localhost:8082/mogaco/notice/notice/noticeInsert.do


※  아무것도 없으면 프로젝트부터 현재까지 내려옴 

※   / : 현재위치 부터,    ../ : 현재한칸위로 


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 

${pageContext.request.contextPath}

절대경로 활용 

+ Recent posts