Jason,

You can call it from <cfobject> or redesign it as a CFX_Java class.

If calling from <cfobject>, you will need to design a public constructor
with the appropriate number of arguments, then call it as follows:

<cfobject type="java" action="create" name="myObj" class="Auth">
<cfset myObj.init(arg1, arg2, ...)>

If redesigning as a Java CFX, you'll pass the arguments as named values in
the <CFX> call:

<CFX_Auth arg1="val1" arg2="val2">

For returning the variable, with <CFObject> you can create and call a public
method which returns the value:

<cfset ret=myObj.getReturnText()>

or in CFX, set it directly from within the java class using the
Response.setVariable() method.

David

> -----Original Message-----
> From: Jason Egan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 19, 2000 7:32 AM
> To: Cf-Talk
> Subject: java class from CF template
>
>
> I have a java .class file that I can run from the command line:
>
> Java Auth ISPtest DBAUTH.txt OUT.txt
>
> The name of the class file is Auth.class, how can I run this from A CF
> template?? Can I make this a cfx tag?  Or pass the parameters to it in any
> other way???  The dbauth.txt is the packet to send, and the out.txt is a
> text file of the received packet�
>
> Once the application has executed, I will need to have the out.txt as a
> variable� I can read the text file, but if it is called from the template
> and can be stored as a variable rather than a text file I think this will
> work better�.
>
> Anyone????
> je
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to