I just use a struct, with StructKyExists, it's pretty straight forward -
var local = StructNew();
local.foo = javaThing.returnsNull();
if(StructKeyExists(local, "foo"))
{
//do stuff.
}
Mark
On Wed, Jun 25, 2008 at 3:41 AM, Brad Wood <[EMAIL PROTECTED]>
wrote:
> Thanks Pete.
>
> Exactly what class is horus.coldfusion.undefined? If my "attached" you
> mean that you literally attached something to the E-mail, that won't
> work.
>
> Send it off list if you would or post a link.
>
> Thanks.
>
> ~Brad
>
> -----Original Message-----
> From: Pete Jordan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2008 12:35 PM
> To: CF-Talk
> Subject: Re: Java NULL in CF
>
> Brad Wood wrote:
>
> > What's the best way to test for a Java NULL in CF?
>
> > Should I just set the output of each of those methods into a variable,
> > and then check for the variables existence?
>
> That'll work.
>
> <cfset path=my_url.getpath()/>
> <cfif isdefined('path')> <!--- ... ---> </cfif>
>
> We use a little Java class to tidy this (amongst other things) up that
> I've attached - with luck the houseoffusion mailing list software will
> leave it intact.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308080
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4