can instantiate and use java classes from your CF. For example:
<cfset url = "" "java.net.URL").init(myURL) />
<cfset conn = url.openConnection() />
<cfset out = createObject("java",
"java.io.OutputStreamWriter").init(conn.getOutputStream()) />
<cfset out = createObject("java", "java.io.BufferedOutputStream").init(out)
/>
<cfset out.write("hello") />
.....
Cheers,
barneyb
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 01, 2004 1:10 PM
> To: CF-Talk
> Subject: Java Code Directly in CFMs?
>
> Hi Everyone,
>
> I've been looking at Kevin Hoyt's article at:
>
> http://www.macromedia.com/devnet//mx/coldfusion/articles/googl
> ews_02.html
>
> on ways to invoke the GoogleAPI Web Service via a CFX.
>
> In the very last paragraph he states:
>
> "In the next article in this series, instead of building and
> configuring a Java
> CFX tag, you'll place Java code directly into a ColdFusion page."
>
> Could someone elaborate on this? How can you embed Java code
> in a ColdFusion
> page? Or is he talking about something different?
>
> Many thanks,
> Phill Gibson
> [EMAIL PROTECTED]
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

