On 2/3/06, Dave Watts <[EMAIL PROTECTED]> wrote:
> 
>Is there an equivalent to Java's 'import <package>.<class>;'
>statement? I do not want to write <cfinvoke component="..."
>... all the time.

Classes in the class path are automatically available, there is no 
equivalent of the import statement in java.

You do, always, have to instantiant the object to use them though.... ie,

in java:
SomeClass foo = new SomeClass();

in CF:
<cfset foo = createObject("java","java.abc.SomeClass")>

No way around that.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231358
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to