You don't have to use any certain tags.  You can either call the method in a
CFSCRIPT tag, or have a dummy variable to which you set nothing to.

<cfscript>
someString = mailer.returnString();     // Return: String
mailer.deleteMailFromQueue();           // Return: void
<cfscript>

Or

<cfset temp = mailer.deleteMailFromQueue()>

@_@

--
Scott Van Vliet
Sempra Energy
555 W. 5th St., 21st Floor
Los Angeles, CA 90013
Tel > 213.244.5205
Email > [EMAIL PROTECTED]


> -----Original Message-----
> From: Florin Chitu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 10:51 AM
> To: CF-Talk
> Subject: calling a java method
> 
> 
> Hi,
> I have a java package, from which I load a class.
> This class has several methods, out of which some return 
> values , some do
> different jobs (like sending mail )
> 
> I have no problems getting the returned value from methods like :
> 
>   public static String returnS() {
>     String mystr = "ok";
>     return mystr;
>   }
> 
> to get the value I'm using :
> <cfset retVal = mailer.returnS()>
> 
> Are there some specific cfm tags that I'm supposed to use in order to
> execute a method that is defined as void , in the java program ?
> 
> Thank you,
> 
> Florin
> 
> 
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to