작은방
context root 가져오기(JSP, JSTL, EL) 본문
[ JSP ]
<%=request.getContextPath() %>
→ /root
[ JSTL ]
<c:url value='/' />
→ /root/
[ EL ]
${pageContext.request.contextPath}
→ /root
'DEV > JSP' 카테고리의 다른 글
삼항연산자(EL) (0) | 2016.07.08 |
---|---|
EL(Expression Language) 태그 (0) | 2016.05.11 |
Comments