Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

coldfusion and jsp

New Here ,
Aug 16, 2008 Aug 16, 2008
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
TOPICS
Getting started
480
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2008 Aug 18, 2008
follow this getPageContext() example

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2008 Aug 18, 2008
LATEST
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")>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources