|
From: <php...@li...> - 2008-09-03 14:17:19
|
I had a similar problem and I use java_values() to solve, try :
if( java_values($IDEAS->isValidAccountNumber($acctnum)) ){
...
}
Hope this Help,
Benjamin.
php...@li... a écrit :
>>> Try:
>>>
>
>
>>> $res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
>>> if ($res === false) {
>>>
>
> I tried
> $result = (bool)$IDEAS->isValidAccountNumber($acctnum);
> echo "result = $result";
>
> And got
> result = 1
>
> This can't be correct because I set up the isValidAccountNumber function
> to always return false.
>
> I tried
> $result = $IDEAS->isValidAccountNumber($acctnum);
> echo "result = $result";
>
> And got
> result = [[o:Boolean]:"false"]
>
> At least false is in there somewhere. I guess the question I should be
> asking is how do I extract the value from the Boolean object returned by
> Java?
>
> When I try
> $resval = $result->value;
> echo "resval = $resval";
>
> It takes a dump
> Error [[o:Exception]:"java.lang.Exception: GetProperty failed:
> [[o:Boolean]]->value.
> Cause: java.lang.NoSuchFieldException: value (with args:).
>
> If not value, then what?
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|