Hi David,
Thank you very much for the advice. The "tyep" is a mistake I made in the
email only. So I restart CF and It works fine!
Thanks again, this saves me lots of time.
Sima
"David
Gassner" To: CF-Talk <[EMAIL PROTECTED]>
<david@vintag cc:
eapps.com> Subject: Re: <cfobject>
11/01/00
04:38 AM
Please
respond to
cf-talk
Sima, the only thing I notice is the misspelling of the "type" attribute;
it's spelled "tyep". If that misspelling isn't in your actual code, then
the problem may be in the class itself; could you post the source code?
Also, note that if you call the class once, then modify and re-compile,
you'll need to stop and restart CF as the original class will have been
cached.
David
> 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]
------------------------------------------------------------------------------------------------
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]