Hey all,

Simple question, how do I go about passing a null value as an argument
to a java method call?

Basic example, I have the following and "param3" should be null.  Using
java (rather than implementing it though CF) I'd just replace "param3"
with "null".  Now I can't do that here because "null" will be treated as
a CF var, one that doesn't exist.  I can't just pass though an empty
string because it'd be treated as that - an empty sting and not a null
value.

<cfscript>
    // grab the java instance
    javaobj = createObject("java", "com.foo.SomeClass");
    // now call a method on that instance
    out = javaobj.bar(param1, param2, param3);
</cfscript>

I'm sure there's a nice simple way of doing this?  Perhaps creating a CF
var called null with a NULL value and using that?

TIA,

Tim.


-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
rawnet ltd
Atrium Court
Bracknell                    [EMAIL PROTECTED]
Berkshire                    Tel : +44 (0) 1344 393 040
RG12 1BW, UK                 http://www.rawnet.com
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------





-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to