[opencms-dev] <%@ include Question %>

wim.huls at home.nl wim.huls at home.nl
Wed Dec 14 15:43:54 CET 2005


Did you try cms.link?

<%@ include file=cms.link("/path2/includes/sample.inc") %>

see also:
http://www.iwka-is.de/opencms/opencms/alkacon-documentation/documentation_scriptlet/docu_method_link.html

---- Anatol <opencms at recordcaster.de> schrijft: 
> 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