Jump to content

JasperFillManager.fillReport(...) - empty report!


mikij

Recommended Posts

 Hi,

I'm trying to implement JasperReports in my Web application (Struts 2-based). But, when report is shown I get just an empty page for a report! I don't get any errors or warnings in console. This is the code which I use for calling the report:

I first fill parameters:

Map params = new HashMap();

params.put("param1", new Long(1L));

...

and then call the report:

Class.forName(new String("com.mysql.jdbc.Driver"));

Connection conn= DriverManager.getConnection(new String("jdbc:mysql://localhost/myApplication"),

           new String("root"), new String(""));

jasperPrint = JasperFillManager.fillReport(jasperReport, params, conn);

My Connection object is not null! What is the problem here ?

 

--

Thx, Miki

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...