Using GetPageContext
Using GetPageContext
<CFSCRIPT>
// include a JSP into your CF page
GetPageContext().include("someFile.jsp")
</CFSCRIPT>
…
<CFSCRIPT>
// transfer control to a CF page
GetPageContext().forward("someFile.cfm")
</CFSCRIPT>
…
<!--- see all that’s available in that object --->
<cfdump var="#getPageContext()#">
…
<cfobject class="java.lang.String" action="CREATE" name="str" type="JAVA">
<cfset str = "/test/test.cfm">
<cfoutput>#GetPageContext().GetServletContext().getRealPath(str)#
</cfoutput>
Run these in separate files!
Previous slide
Next slide
Back to first slide
View graphic version
Home
Speakers
Directions
Schedule
Photos
CF Conf Central
Please send comments/questions to
[email protected]