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
|
3
|
4
(3) |
|
5
|
6
(4) |
7
(1) |
8
(1) |
9
|
10
(1) |
11
(5) |
|
12
(4) |
13
(1) |
14
(2) |
15
(2) |
16
(1) |
17
|
18
|
|
19
|
20
(4) |
21
(3) |
22
(6) |
23
(1) |
24
(1) |
25
(4) |
|
26
(1) |
27
(2) |
28
(3) |
29
(1) |
30
|
|
|
|
From: <php...@li...> - 2010-09-25 10:34:01
|
Hi, this problem has been fixed in version 6.2.1 Regards, Jost Bökemeier On 9/11/10, Jost Boekemeier <jos...@go...> wrote: > Hi, > > I will look at this problem. Please note that the PHP/Java Bridge > currently doesn't use HTTPS to communicate with a JEE back end. > > I will change the behaviour for 6.2.1. > > Regards, > Jost Bökemeier > |
|
From: <php...@li...> - 2010-09-25 10:10:40
|
Hi,
[please excuse the delay]
> instance.getEngine().getContext().setWriter(writer); // wrong! reset by following line
> instance.getEngine().setContext((ScriptContext)new PhpHttpScriptContext(instance.getEngine().getContext(),this,this.getServletContext(),request,response));
> I have been doing more investigations into why the php-java bridge is
> not working as I would expect
The PHP/Java Bridge code is correct. The decorator you've set connects
the writer, reader, errorWriter to the servlet. So your code has no
effect.
Please see the example code I've given.
BTW: For PHP/Java Bridge 6.2.1 I will rename the decorator to
"PhpHttpScriptContext". Please either use your own decorator (copy
PhpHttpCompiledScriptContext.java to your project) or please use the
new name.
The test script I've used is below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<%@ page import="java.io.*" %>
<%@ page import="org.apache.commons.lang.*" %>
<%@page import="javax.script.*" %>
<%@page import="php.java.script.servlet.*" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example</title>
<%
// My PHP script is defined here....
String phpScript = "";
phpScript += "function pass_to_php_backend($ar) { \n";
phpScript += " print('something'); \n";
phpScript += " //do something useful here...\n";
phpScript += "} \n";
phpScript += "function outputJavaScript() { \n";
phpScript += "$IMConfig = array(); \n";
phpScript += "$IMConfig['allowed_image_extensions'] =
array('jpg','gif','png'); \n";
phpScript += "return pass_to_php_backend($IMConfig); \n";
phpScript += "} \n";
phpScript += "outputJavaScript(); \n";
%>
<%!
private static final CompiledScript script;
static {
try {
script =((Compilable)(new
ScriptEngineManager().getEngineByName("php"))).compile(
"<?php echo eval(java_context()->get('script')); ?>");
} catch (ScriptException e) {
throw new RuntimeException("bleh!");
}
}
// private static final String evalPHP(String arg) {
private String evalPHP(String arg, HttpServletRequest request,
HttpServletResponse response) {
CompiledScript instance
=(CompiledScript)((java.security.cert.CertStoreParameters)script).clone();
instance.getEngine().put("script", arg);
OutputStream out = new ByteArrayOutputStream();
Writer writer = new OutputStreamWriter(out);
instance.getEngine().setContext((ScriptContext)new
PhpHttpScriptContext(instance.getEngine().getContext(),this,this.getServletContext(),request,response));
instance.getEngine().getContext().setWriter(writer);
try {
instance.eval();
} catch (ScriptException e) {
throw new RuntimeException("bleh!");
}
try {
writer.close();
} catch (IOException e) {
throw new RuntimeException("bleh!");
}
String result = out.toString();
return result;
}
%>
<script type="text/javascript">
a = '<%= evalPHP(phpScript, request, response) %>;'
if (a == "") alert("No Output");
else alert("Output = " + a);
<%= evalPHP(phpScript, request, response) %>
</script>
</head>
<body>
hello
</body>
</html>
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2010-09-25 08:20:50
|
Hi Theen-Theen, [please excuse the delay] I am sorry, but I could not reproduce this problem with jboss-4.0.3SP1 > - on MacOSX > - php-cgi compiled using Macport. > - latest php-java-bridge > - JBOSS 4.0.3 > - I do not have the doc_root variable set in my php.ini Please upgrade jboss 4.0.3 or please send a bug report to the vendor. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-09-25 08:18:18
|
Hi, welcome to the PHP/Java Bridge mailing list. You can find information about the PHP/Java Bridge at http://php-java-bridge.sf.net Regards, Jost Bökemeier |