The change will be in version 5.4.4.2.
I have tested this with:
<?php require_once("java/Java.inc");
$ctx = java_context();
$rd =
$ctx->getServletContext()->getRequestDispatcher("/sessionSharing.jsp");
$rd->include($ctx->getHttpServletRequest(),$ctx->getHttpServletResponse());
echo "test jsp output include";
?>
A rc will be available for download.
Regards,
Jost Boekemeier
Apr 18, 2009 10:52 vorm. schrieb am "Jost Bekemeier" <
jos...@go...>:
Well, since RequestDispatcher.include() passes the included arguments via a
different channel, they are discarded, as the bridge only uses the official
API (request.getRequestURI() etc). But include() passes them via properties:
javax,servlet.include.request_uri, context_path, servlet_path, path_info and
query_string.
I don't know who designed this part of the javax.servlet spec, but I think
this design is complete nonsense. A servlet should not care whether or not
it has been invoked via an include.
I will add code to our servlet which checks and uses the
javax.servlet.include.* request properties if necessary.
Regards,
Jost Boekemeier
Apr 18, 2009 1:14 vorm. schrieb am <
php...@li...>:
Hi Everyone,
I was wondering if anyone has installed PHP JavaBridge into Tomcat 5 and
gotten Apache-style serverside includes (SSI) to work with PHP?
<!--#inlcude virtual="myinclude.php" -->
My web.xml has the SSI servlet enabled. I can include regular *.html files
into each other, but when I try to include the output of a php script, it
included the content of my original page.
I'm really at a loss.
Thanks for your help,
Don
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|