This morning, I thought I've tested getPageContext().include("path here") and it didn't work. I've re-tested it and now it works (probably not very well awake this morning...).
jsp:include allows you to include eihter a static or dynamic file (it handles automatically both types of files), so it solves the problem. Thanks Matt. Benoit -----Message d'origine----- De : Matt Liotta [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 août 2003 16:24 À : CF-Talk Objet : Re: static SSI (?) and dynamic SSI (cfinclude) with CF You don't need to use the tag itself, just do getPageContent().include("path here"). -Matt On Friday, August 22, 2003, at 10:14 AM, Benoit Hediard wrote: > Indeed, it might work. > Unfortunately, we're using CFMX 6.1 Standard (ex. Pro), so we don't > have > access to JSP features/taglib. > > Benoit > > -----Message d'origine----- > De : Matt Liotta [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 22 août 2003 16:08 > À : CF-Talk > Objet : Re: static SSI (?) and dynamic SSI (cfinclude) with CF > > > Have you tried including the HTML file using JSP:include? > > -Matt > > On Friday, August 22, 2003, at 09:54 AM, Benoit Hediard wrote: > >> Hi everyone, >> >> We were using a file-based caching system doing SSI (server side >> include) >> based on <cfinclude> (to cache sections of pages). >> >> The problem with cfinclude : it performs a dynamic SSI, not a static >> SSI. >> Even if you include an html page, it will be still parsed and >> considered as >> a ColdFusion template. >> The results : with trusted cache turned on, it will never serve new >> includes... (even if you delete the html cache file). >> >> In order to solve this problem, we are now using <cffile >> action="read"> and >> <cfoutput> to include the content of the html cache file. >> >> My questions are : >> >> 1. Is there a more efficient way to perform a static SSI with CF? >> >> 2. Don't you think that a new attribute to <cfinclude> could be added >> : >> <cfinclude template="..." mode="dynamic"> (default, dynamic SSI for CF >> pages, included content is parsed and executed) >> or <cfinclude template="..." mode="static"> (static SSI, content is >> not >> parsed, just included) >> >> >> Benoit Hediard >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm