I'm here again.
Now my problem is that I can't generate report in my servlet using JasperReports of JasperSoft Studio. I'm initiating in this technology and I'm using sample that I find in internet. The code follow is a code that I have created for desktop and changed to servlet.
And the log generated:
Another question is that if someone have any tutorial of JasperReport for servlet to send for me?
This answer may not exactly be what your expecting but I have done what you are trying to do using a different approach. The servlet put the name of the jasperreport and its paramaters in a table and thats all. A separate program running on a server polls the table and when it sees a request for a report it runs it. The table also holds the name of the print queue.
This has the advantage that the servlet is not burdened with the processing time it takes to generate a report and it's easier to debug the report on a foreground application
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Create Edit Print & Convert PDF Using Free API with Java