Hi I have some problems in using <cfobject> tag to create a java object
and access its public method in Cold Fusion.
Here is the detail:(This is just a test and to prove that we can use the
real java objects on the server, so forget what it actually does here)
I created a simple java class called CreateDates.class.
It has a public method called tellage(), which returns an integer.
In the main method I make an instance of the class (use the default
constructor), and do some stuff.
It works fine by itself. But when I called it using <cfobject> and tried to
access the public method Cold Fusion gave me an error: the method is not a
public method.
The code is here:
<cfobject action="Create"
tyep="java"
class="CreateDates"
name="MyDate">
Then when I use <cfset age=MyDate.tellage()>,
the Cold Fusion says it's not a public method.
Is this the right way to use this tag?
Any suggestions will be greatly appreciated. Thanks in advance.
Sima
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]