[opencms-dev] <%@ include Question %>
Joe Desbonnet
jdesbonnet at gmail.com
Wed Dec 14 14:46:41 CET 2005
Have you tried relative paths? Eg
../../path2/includes ... etc
Joe.
On 12/14/05, Anatol <opencms at recordcaster.de> wrote:
> Hi All!
>
> A little question about <%@ include file="....." %>. How can I reference
> to a file which is NOT in the same folder like the file into that I want
> include the other file?
> For Example:
>
> /sites/example1/path1/subpath1/main.jsp
> -----------------------------
> [...]
>
> <%@ include file="/path2/includes/sample.inc" %>
>
> [...]
> -----------------------------
>
>
> /sites/example1/path2/includes/sample.inc
> -----------------------------
>
> <!-- Hello, this is a test! -->
>
> -----------------------------
>
>
> If I use <%@ include file="/path2/includes/sample.inc" %>, I got an
> error that the file "/WEB-INF/jsp/offline/path2/includes/sample.inc" was
> not found.
>
> Has anybody an idea?
>
> Thanks for your help!
> Anatol
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list