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-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
|