You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
|
2
(4) |
3
(10) |
4
(1) |
5
|
6
(1) |
|
7
|
8
(4) |
9
(3) |
10
(1) |
11
(1) |
12
|
13
(1) |
|
14
(2) |
15
|
16
|
17
|
18
(4) |
19
|
20
(1) |
|
21
|
22
(2) |
23
(2) |
24
(2) |
25
(2) |
26
(3) |
27
|
|
28
|
29
|
30
|
|
|
|
|
|
From: <php...@li...> - 2008-09-08 18:53:34
|
Hi Jeff, > > You must edit the appropriate config file and switch > off the > > provided policy. > > I turned off the security manager for Tomcat completely. > This did not > work for me either. Do you get a valid JSR223 script engine manager from the factory? Do you receive a javax.script.ScriptEngine? And is the script engine indeed the php.java.bridge.PhpScriptEngine or is it some other implementation? Can you please start log4j (e.g. with: "java -jar log4j.jar" -- please use the log4j contained in the bridge binary download) and restart tomcat with the log level set to 4 (e.g. with: JAVA_OPTS="-Dphp.java.bridge.default_log_level=4" sh catalina.sh run) and check the log? Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-08 16:52:09
|
Hi. Thank you for your reply. I am still having the same problem. I've tried a variety of things in response to your reply. On Mon, Sep 8, 2008 at 1:09 AM, <php...@li...> wrote: > the current Tomcat version is 6.x, so I assume that you use the > version which came with debian. I am using Ubuntu 7.10 and the Tomcat package available in Ubuntu's package repositories. > Please either use the standard version of Tomcat with a standard > version of Java. Or please use the PHP/Java Bridge debian package > available from sourceforge. I looked at the PHP/Java Bridge Debian package available from SourceForge and saw that it installs a PHP configuration file, 'java.ini', and a bunch of files to '/usr/lib/php5/20060613+lfs'. Are these needed for calling PHP from Java, or are they only needed if you call Java from PHP? On the off chance they are needed to call PHP from Java, I installed them and restarted Apache. This did not solve my problem. I also switched out the JAR PHP/Java Bridge JAR files I am using for the ones included in the Debian package available from SourceForge. This did not solve my problem either. > We've recently tried to set up the binary file on a debian machine > and run into the same problems. Basically the tomcat version shipped > with the debian os is patched. It has additional features which > forbit accessing /bin/sh or /usr/bin/php for example. > > You must edit the appropriate config file and switch off the > provided policy. I turned off the security manager for Tomcat completely. This did not work for me either. -- Jeff Weston PGP public key available from http://pgp.mit.edu/ PGP Key ID: 0x14B456ED |
|
From: <php...@li...> - 2008-09-08 08:09:07
|
Hi, > First off, some background information about my setup. I am > running on > Ubuntu 7.10 (Gusty Gibbon). I am using Tomcat 5.5 as my web > server. I the current Tomcat version is 6.x, so I assume that you use the version which came with debian. Please either use the standard version of Tomcat with a standard version of Java. Or please use the PHP/Java Bridge debian package available from sourceforge. We've recently tried to set up the binary file on a debian machine and run into the same problems. Basically the tomcat version shipped with the debian os is patched. It has additional features which forbit accessing /bin/sh or /usr/bin/php for example. You must edit the appropriate config file and switch off the provided policy. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-06 19:11:50
|
Hi,
I'm having trouble calling PHP from a JSP in a web application I am
working on. I've been working on this for several hours now and have
run out of things to try. I've searched Google and the archives for
this mailing list, but have been unable to find a solution. I'm hoping
someone here can help me out.
First off, some background information about my setup. I am running on
Ubuntu 7.10 (Gusty Gibbon). I am using Tomcat 5.5 as my web server. I
am using Eclipse as my IDE. Java, Tomcat, and Eclipse have all been
installed from the Ubuntu package repositories. I am using version
5.2.2 of the PHP Java Bridge.
I have placed the following JARs in my WEB-INF/lib directory:
JavaBridge.jar
php-script.jar
php-servlet.jar
script-api.jar
I have placed the following lines in my WEB-INF/web.xml file:
<listener>
<listener-class>php.java.servlet.ContextLoaderListener</listener-class>
</listener>
I don't know if it matters or not, but I am also using version
2.0.11.2 of Apache Struts. The appropriate Struts JARs have also been
placed in the WEB-INF/lib directory and the WEB-INFO/web.xml file has
also been updated for Struts accordingly.
I have created a simple JSP with some basic HTML content (a variant of
"Hello World") and have placed the following code snippet inside the
JSP in an attempt to use PHP:
<%
out.print( "[Before]" );
javax.script.ScriptEngine e =
php.java.script.EngineFactory.getPhpScriptEngine( this,
application,
request,
response );
e.getContext().setWriter( out );
e.eval( "<?php echo \"Test\"; ?>" );
out.print( "[After]" );
%>
When I view this JSP in my web browser, I see "[Before][After]" with
nothing in between [Before] and [After], along with the rest of the
page contents. I am expecting the word "Test" to appear between
[Before] and [After].
I have tried various PHP snippets in the eval line, and none of them
work. Here are the other things I've tried:
e.eval( "<?php echo phpinfo(); ?>" );
e.eval( new java.io.FileReader( "/var/www/header.php" ));
I've checked the two Tomcat logs that are being written to,
'catalina.2008-09-06.log' and 'localhost.2008-09-06.log'. While I was
thrashing about with some earlier attempts at getting this to work, I
would see exceptions being logged in one or both of those log files,
as well as appearing in my browser when viewing the JSP. With this
current arrangement, nothing is being logged in those two log files
and I am not seeing an exception in the browser when viewing the JSP.
Without a stack trace or other error message, I am at a loss for how
to proceed with diagnosing my problem. Any help you could provide here
would be very much appreciated.
--
Jeff Weston
PGP public key available from http://pgp.mit.edu/
PGP Key ID: 0x14B456ED
|
|
From: <php...@li...> - 2008-09-04 09:37:32
|
Hi,
> Of course, the error is in the method declaration
Not really.
> *public Boolean isValidAccountNumber(String acctnum) { *
> *public boolean isValidAccountNumber(String acctnum) {*
from the PHP/Java Bridge's point of view both are equivalent, unless you define
define ("JAVA_PREFER_VALUES", 1);
before including java/Java.inc. The JAVA_PREFER_VALUES forces a round-trip for each primitive return value.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2008-09-03 19:51:38
|
Hi,
> Try:
> $res = (bool) $IDEAS->isValidAccountNumber($acctnum) ;
No! PHP automatically casts a primitive value into a boolean, if it is part of the boolean expression. However, you cannot convert a PHP object into PHP value using a type cast. The only exception is the (string) type cast, which internally calls $res->__toString()[1].
Therefore the PHP/Java Bridge library contains two special procedures, one to fetch a PHP value from a Java object, the other one to cast a Java object into a PHP primitive type. Please see our documentation for details.
Regards,
Jost Boekemeier
[1] PHP's behaviour is insane, of course. In order to convert the following PHP object into a value one needs two type casts:
class Clazz_ONE {
function __toString() { return "1"; }
}
$one = new Clazz_ONE();
var_dump( (int) $one)
=> ERROR
var_dump( (int)(string) $one)
=> 1
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2008-09-03 16:04:11
|
Roger says:
>>You must change your method declaration by (notice the native boolean):
>>*public boolean isValidAccountNumber(String acctnum) {*
Thank you. I will try this when I get a chance and let you know. Since
it is working, I have moved to another assignment, but when I get time I
will try this. I appreciate the information. I wasn't aware of the
difference between boolean and Boolean.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
From: <php...@li...> - 2008-09-03 15:34:34
|
Of course, the error is in the method declaration, see:
*public Boolean isValidAccountNumber(String acctnum) { *
Java is performing an automatic typecasting from native boolean to object
java.lang.Boolean.
You must change your method declaration by (notice the native boolean):
*public boolean isValidAccountNumber(String acctnum) {*
Please test this change and give your feedback.
Greetings from Cartagena / Colombia
--
Roger Padilla
On Wed, Sep 3, 2008 at 9:57 AM, <php...@li...
> wrote:
> Benjamin wrote:
> >>I had a similar problem and I use java_values() to solve, try :
>
> >>if( java_values($IDEAS->isValidAccountNumber($acctnum)) ){
>
> That was it. Thanks so much Benjamin.
>
> 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
>
--
Roger José Padilla Camacho
|
|
From: <php...@li...> - 2008-09-03 14:57:01
|
Benjamin wrote:
>>I had a similar problem and I use java_values() to solve, try :
>>if( java_values($IDEAS->isValidAccountNumber($acctnum)) ){
That was it. Thanks so much Benjamin.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
From: <php...@li...> - 2008-09-03 14:51:07
|
>>That's so strange... in PHP the number 1 is like true, that also not works >>for you? I believe the problem is that after the call, $res contains a Java Boolean object, not the boolean value of 0 or 1. I am trying the java_values approach now. Charles Shaffer Senior Analyst NTN-Bower Corporation |
|
From: <php...@li...> - 2008-09-03 14:39:54
|
That's so strange... in PHP the number 1 is like true, that also not works
for you?
On Wed, Sep 3, 2008 at 9:37 AM, <php...@li...
> wrote:
> >>Just try:
>
> >>// Notice the !
> >>if(!$res){
> >> ...
> >>}
>
> Same thing.
>
> 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
>
--
Roger José Padilla Camacho
|
|
From: <php...@li...> - 2008-09-03 14:37:10
|
>>Just try:
>>// Notice the !
>>if(!$res){
>> ...
>>}
Same thing.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
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
>
|
|
From: <php...@li...> - 2008-09-03 14:12:22
|
Just try:
// Notice the !
if(!$res){
...
}
On Wed, Sep 3, 2008 at 9:05 AM, <php...@li...
> wrote:
> >>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
>
--
Roger José Padilla Camacho
|
|
From: <php...@li...> - 2008-09-03 14:06:10
|
>>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
|
|
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
|
|
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
|
|
From: <php...@li...> - 2008-09-02 19:16:19
|
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
|
|
From: <php...@li...> - 2008-09-02 00:10:28
|
Hi, How can I hard-code the context using define(...). I try an trial an error, but only get errors :-) What variable I have to set to hard-code the context to something different from JavaBridge? Best regards, Carlos. 2008/8/30 <php...@li...> > Hi, > > The Java.inc is programmed so that if no context is available to > Apache/PHP, the default web context "JavaBridge" is used. If you remove it, > you will get the said error message. > > If you want to use your own context, you'll need to hard-code the context, > for example via a define(...) directive before the Java.inc is loaded, or > store your application into a custom context and set the JAVA_SERVLET > definition to User. The "User" setting extracts the context and forwards to > the appropriate web context of the back-end. Please see our FAQ for details. > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.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 > |