RE: Newbie CF architecture question

2001-04-25 Thread James Maltby

COM objects can be called from outside a page.

J

-Original Message-
From: Julie Clegg [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2001 14:16
To: CF-Talk
Subject: Newbie CF architecture question




Hello,

I have a genreal question concerning how CF embeds other code into its code.

  I understand how to use javascript in CF and how to call a stored prcedure

from the SQL Server but how or even can you embed java code into my CF 
application.  I guess I am trying to find out if there is coding that you do

outside
of the
code that you embed in a page? in other words, do you create components
on
the server that the code inside the pages talk to?

Hope this makes sense..

TIA,

Julie
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Newbie CF architecture question

2001-04-25 Thread Jeffry Houser


   Look up your documentation on CFINCLUDE.

   In basic terms, you can take some code (any code you want) and put it in 
a separate file, and then include that file in your other template.  I 
commonly use this for headers and footers.

   If you create a file (we'll call it 'myinclude.cfm') with one line:
   Welcome to my site


  You can create a CFM document (index.cfm) like this:

 
 
 

  Run the index.cfm.  It will output the first two tags, then it will go 
out and look for myinclude.cfm and output the 'welcome to my site' message, 
then it will continue processing and output the end body and end html tags.

You will probably also want to look up your documentation on custom 
tags, which are more akin to procedures.  You can pass parameters in and 
out of the custom tag, whereas an include is processed as if it were part 
of the template.


At 08:15 AM 04/25/2001 -0500, you wrote:


>Hello,
>
>I have a genreal question concerning how CF embeds other code into its code.
>   I understand how to use javascript in CF and how to call a stored prcedure
>from the SQL Server but how or even can you embed java code into my CF
>application.  I guess I am trying to find out if there is coding that you do
>outside
>of the
>code that you embed in a page? in other words, do you create components
>on
>the server that the code inside the pages talk to?
>
>Hope this makes sense..
>
>TIA,
>
>Julie
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists