|
From: <php...@li...> - 2008-09-02 20:05:33
|
Try:
$res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
if ($res === false) {
On Tue, Sep 2, 2008 at 2:20 PM, <php...@li...
> wrote:
> By the way. When I call the validation method from a command line java
> program, it works perfectly.
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
>
>
>
>
> php...@li...
> Sent by: php...@li...
> 09/02/2008 02:16 PM
> Please respond to php-java-bridge-users
>
>
> To: php...@li...
> cc:
> Subject: [Php-java-bridge-users] Return Boolean from Java to
> PHP
>
>
> How do you return a boolean value from a java routine to a php module?
>
> I have a java method that validates an account number and returns true or
> false. The Java declaration is
>
> public Boolean isValidAccountNumber(String acctnum) {
>
> in the method I return true; or return false;
>
> In the php code I check it like this
>
> if ($IDEAS->isValidAccountNumber($acctnum) == false) {
>
> No matter what I do, it always acts as if the return value was true. Even
>
> when I force the Java method to always return false;
>
> Is this a type issue?
>
> 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
>
> --
> This email was Anti Virus checked by Astaro Security Gateway.
> http://www.astaro.com
>
>
> -------------------------------------------------------------------------
> 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
>
--
Roger José Padilla Camacho
|