Steps For Programmer/JSP & Servlet

EL의 내장객체를 사용하여 host의 주소와 contextPath 알아내기

Taoist 2010. 12. 28. 16:36
@ contextPath : ${pageContext.servletContext.contextPath}

@ host의 주소 : ${header.host}

@ EL의 내장객체와 JSP의 내장객체는 엄연히 다르다. EL의 내장객체들은 pageContext를 제외하면 모두 맵이다.