root of <%@include file=""%> and <c:import url=""/>

总是忘记root相对哪个路径

<jsp:include page="/index.jsp"/>
<%@include file="index.jsp%>

root: ${project_root}/WebContent/
<c:import url="/index.jsp"/>

root: ${domain_root}
 

其实<c:import>是面向url的,当然就是以domain root为起始

猜你喜欢

转载自lerluc.iteye.com/blog/1225052
今日推荐