---
title: "root of <%@include file=\"\"%> and <c:import url=\"\"/>"
author: "lerluc"
date: "2011-10-31T15:04:23Z"
tags: []
categories: ["互联网"]
slug: "root-of-include-file-and-c-import-url"
draft: false
lastmod: "2011-10-31T15:10:12Z"
id: 1225052
url: "https://lerluc.iteye.com/blog/1225052"
---

总是忘记root相对哪个路径

 

 

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

root: ${project_root}/WebContent/
```

 

```
<c:import url="/index.jsp"/>

root: ${domain_root}
```

 

其实&lt;c:import&gt;是面向url的，当然就是以domain root为起始