ITeye博客

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

lerluc · 2011-10-31 15:04 · 互联网 · Markdown

总是忘记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为起始

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。