[opencms-dev] using <%@include ... %> fails to update in 5.0.1

Alexander Kandzior alex at opencms.org
Mon Jun 28 20:06:01 CEST 2004


You must "touch" the JSP that contains the <%@ include file= "..." %> as
well as the included file. 

The update JSP algorithm does not detect changes on files included with <%@
include file= "..." %> if the file that contains the include is not also
changed.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

> -----Original Message-----
> From: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Geoff Winkless
> Sent: Monday, June 28, 2004 6:51 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] using <%@include ... %> fails to 
> update in 5.0.1
> 
> 
> I'm trying to include a jsp statically. The documentation
> (/alkacon-documentation/documentation-jsp/includes.html) says
> 
> ===============
> Preferred ways of including
> Directive based inclusion with <%@ include file="..." %>
> 
> In case you just want to statically include a file at compile 
> time, you can use the standard directive <%@ include 
> file="..." %>. Keep in mind that OpenCms will automatically 
> translate the given file name to 
> /WEB-INF/jsp/{on/offline}/{original-filename}, so all 
> inclusions happen from the "real" FS, not from the VFS. That 
> translation will happen while the JSP is written from the VFS 
> to the "real" FS. OpenCms will insure that all files 
> referenced by <%@ include file= "..." %> directives will also 
> be written to the "real" FS.
> 
> ===============
> 
> Now this works, except that there seems to be no mechanism to 
> update the jsp on the FS with the version in the VFS: if I 
> delete the one on the real FS then the VFS version is written 
> out correctly, but that's hardly what I want.
> 
> Is there a way of making sure that changes to the VFS version 
> are written out to the new static version?
> 
> Cheers
> 
> Geoff
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security 
> System. For more information please visit 
> http://www.messagelabs.com/email 
> 
> ______________________________________________________________________
> _______________________________________________
> 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