Menu

[r511]: / trunk / php-java-bridge / tests.php5 / testContextAwarePhpJavaServlet.php  Maximize  Restore  History

Download this file

13 lines (11 with data), 254 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?php
try {
if(!extension_loaded("java")) require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$ctx = java_context();
$request = $ctx->getServletContext();
echo $request;
} catch (Exception $e) {
die("$e");
}
echo "test okay\n";
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.