Skip to main content
Participant
Jan 8, 2016 12:12 PM UTC
Question

Does coldfusion 11 support Simple JSP/Servlet Applications

My current JSP/Servlet web application is working on Jrun4 app server.

I was planning to migrate on ColdFusion 11 .

I did not find any JSP/Servlet sample project on ColdFusion. I am in doubt if ColdFusion 11 works for JSP/Servlet.

All I get is cfm projects illustrations for ColdFusion11.

Please tell me if ColdFusion 11 works for JSP/Servlets version 3.0 and if yes please share the steps to setup in eclipse platform.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

BKBK
Community Expert
Community Expert
Jan 9, 2016 4:10 PM UTC

Yes, ColdFusion 11 supports JSP and Servlets. But, hey, don't take my word it: find out for yourself.

servletTest.jsp

Server info: <%= application.getServerInfo() %><br>

Servlet version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>

JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>

Java version: <%= System.getProperty("java.version") %>

servletVersion.cfm

<cfscript>

writedump(getPageContext().forward('servletTest.jsp'));

</cfscript>

Translate
Carl Von Stetten
Legend
Jan 9, 2016 5:05 AM UTC

ColdFusion 11 runs on top of a customized version of Tomcat 7 instead of JRUN.  Tomcat is a servlet container, and should run JSP just fine via the built-in Jasper JSP Engine.  I can't provide any more detail - I don't work with JSP at all. But a quick Google of "Tomcat JSP" should get you started, and show that Tomcat 7 supports JSP version 3.0.

Translate