AnsweredAssumed Answered

java.io.FileNotFoundException on <#include 'file&amp

Question asked by jacqueswvdh on Jul 22, 2007
Latest reply on Jul 23, 2007 by jacqueswvdh
Hi all,
I am using alfresco 2.1
I want to include the content of a node in another file:

<#assign spaceref="${url.serviceContext}/api/node/content/${newsNode.nodeRef.storeRef.protocol}/${newsNode.nodeRef.storeRef.identifier}/${newsNode.nodeRef.id}">
<#include "${spaceref}/${newsNode.name?url}">

This leads to a java.io.FileNotFoundException.
If I use the same string for a href, the link works fine and displays the content.

<a href="${spaceref}/${newsNode.name?url}">content</a>

What is wrong with the include?
Kinds regards, Jacques

Outcomes