diff --git a/README.md b/README.md index 39bb291..3f4feb4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ How to configure JasperPHP 8. Include path of the library in php (require_once("http://localhost:8080/JavaBridge/java/Java.inc")), make sure path is correct and tomcat server is running. 9. run index.php +FYI +======= +There is a bug when you use Tomcat 8. + License ======= This program is free software, under the GNU/GPLv3 license terms. diff --git a/index.php b/index.php index d88ef6d..9b4b876 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,4 @@ 0){ - +if (!empty($_REQUEST) && count($_REQUEST) > 0) { $query = "SELECT customer.first_name AS customer_first_name, customer.last_name AS customer_last_name, customer.email AS customer_email FROM customer customer"; - - $obJrepor = new Jreport($query, 'customer.jrxml', array('title'=>'Customer'), 'report'); + $params = array('title'=>'Customer'); + $fileName = 'customer.jrxml'; + $outputFileName = 'report'; + $obJrepor = new Jreport($query, $fileName, $params, $outputFileName); $obJrepor->exportar($_REQUEST['format']); } ?> + Jasper Report Example @@ -52,4 +54,4 @@

- \ No newline at end of file +