title: Use a URL template in jsp:include or c:import in Spring MVC
body: <p>I would like to use a URL generated with spring's <code>&lt;spring:url&gt;</code> in a <code>&lt;jsp:include&gt;</code> tag, but   it is appending the context path twice. I am using Spring MVC 3.1.</p>
  
  <pre><code>&lt;spring:url var="publicationUrl" value="/publications/{id}"&gt;
     &lt;spring:param name="id" value="${publication.id}" /&gt;
  &lt;/spring:url&gt;
  
  &lt;!-- publicationUrl = "/myApp/publications/1234" --&gt;
  
  &lt;!-- Both methods fail because they are appending the --&gt;
  &lt;!-- context again: "/myApp/myApp/publications/1234"  --&gt;
  &lt;jsp:include page="${publicationUrl}" /&gt;    
  &lt;c:import url="${publicationUrl}" /&gt;
  </code></pre>