User Guide Cancel

cfservlet

 

Description

Warning: This tag is obsolete, and has been removed from the language. The documentation is preserved here for informational purposes.

Executes a Java servlet on a JRun engine. To access servlets that run on the same server as ColdFusion, use code such as the following, in which path specifies a servlet, JSP, or anything else:

GetPageContext().include(path)
GetPageContext().forward(path)
GetPageContext().include(path) GetPageContext().forward(path)
GetPageContext().include(path) 
GetPageContext().forward(path)

For more information, see the JSP PageContext API or the Servlet RequestDispatcher API.

History

ColdFusion MX: deprecated this tag. It might not work, and it might cause an error, in later releases.

ColdFusion 11: removed from the language.

Get help faster and easier

New user?