Skip to main content
Participant
August 16, 2008
Question

coldfusion and jsp

  • August 16, 2008
  • 2 replies
  • 502 views
hi,

Does anyone know how to include a jsp file in a coldfusion page cos when i do the getpagecontext the jsp file is not generating the jsp file class and gives me noclassdef error.can anyone help me.

thanks,
Johnson
This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
August 18, 2008
To be sure we're on the same wavelength. I ran these 2 files from the same directory

TimeNow.jsp
==========
<%
java.util.Date date = new java.util.Date();
%>
Hello World, the time is now <%= date %>

getTheTime.cfm
============
<cfset theTime = getPageContext().include("TimeNow.jsp")>

BKBK
Community Expert
Community Expert
August 18, 2008
follow this getPageContext() example