> would like to see CFMX be able to pass null to Java correctly but I > suspect it wouldn't be trivial to do (adding 'null' to a language that
Adding 'null' would be nice, i would also like to have an option to declare variable types(int, double etc), i think this would have a big impact on performance. Joe > -----Original Message----- > From: Sean A Corfield [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 25, 2002 6:24 PM > To: CF-Talk > Subject: Re: Java in CF (CFMX) > > > On Monday, Nov 25, 2002, at 14:32 US/Pacific, Joe Eugene wrote: > > Here is an Example that works with CFMX. The Java file should be > > compiled > > under WEB-INF/classes/ > > ... > > if(c.equalsIgnoreCase("null")) cat=null; else cat=c; > > if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s; > > if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t; > > But Dick's point is that you cannot natively pass null into Java - you > are currently forced to write a Java wrapper class as you have done. I > would like to see CFMX be able to pass null to Java correctly but I > suspect it wouldn't be trivial to do (adding 'null' to a language that > doesn't have it has a semantic impact right across the language because > you have to define in every case what happens in an expression if one > of your sub-expressions is null). > > Sean A Corfield -- Director, Architecture > Web Technology Group -- Macromedia, Inc. > tel: (415) 252-2287 -- cell: (415) 717-8473 > aim: seancorfield -- http://www.macromedia.com > An Architect's View -- http://www.corfield.org/blog/ > > Introducing Macromedia Contribute. Web publishing for everyone. > Learn more at http://www.macromedia.com/contribute > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

