• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 23. Calling External Objects > Invoking Java Servlets

23.3. Invoking Java Servlets

The CFSERVLET tag can invoke a Java servlet from within a ColdFusion template. The CFSERVLET tag requires Allaire's JRun software be installed in order to work. For more information on JRun, see Allaire's web site at http://www.allaire.com.

Assuming you already have JRun installed, invoking a servlet is a matter of calling the CFSERVLET tag in your template. Attributes and parameters can be passed to the Java servlet by nesting CFSERVLETPARAM tags within the CFSERVLET tag. Example 23-7 shows the syntax for calling a servlet and passing it parameters.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint