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

coldfusion and jsp

New Here ,
Aug 16, 2008 Aug 16, 2008

Copy link to clipboard

Copied

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

Views

457

Translate

Translate

Report

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

Copy link to clipboard

Copied

follow this getPageContext() example

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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")>

Votes

Translate

Translate

Report

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
Documentation