|
From: <php...@li...> - 2008-09-02 19:21:04
|
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
|