Posts

Showing posts with the label jsp

How to get live row count as Jasper prints reports

How to get live row count as Jasper prints reports I've developed a web application using jsp that has a list of contents which are placed in an ArrayList . I've tried various methods to implement this, tried the AsynchronousFillHandle , AJAX , Scriptlet . But I just can't get it done properly. ArrayList AsynchronousFillHandle AJAX Scriptlet What I'm trying to achieve here is, while the JasperExportManager is filling records row by row, I want to display the number of rows that have been printed (say Live status of number of records printed) in the webpage. For Example 267 out of 645588 records printed 5692 out of 645588 records printed 34677 out of 645588 records printed 267 out of 645588 records printed 5692 out of 645588 records printed 34677 out of 645588 records printed After two days of unsuccessful attempts, I decided to use a shortcut, I wrote a scriptlet file, which will print the count of records being printed to a txt file in the same directory, Scriptlet ...