Jump to content

JasperViewer "strange" in web app environment


pramudya81

Recommended Posts

Guys.

 

Here is my problem.

First I use iReport to design and generate .jasper file.

Then I only load and fill the report.

 

This is my little java codes

 

JasperReport report = null;

JasperPrint print = null;

 

//filePath is file full path

//params is a HashMap

//conn is a JDBC connection

report = (JasperReport)JRLoader.loadObject(filePath);

print = JasperFillManager.fillReport(report,params,conn);

 

JasperViewer.viewReport(print,false);

 

It works fine.

However, when clients hits the button the JasperViewer generated the report on the server side. Thus clients didnot see anything.

 

Why this is happening?

Should I use applet viewer for jasper to make "client sided" in web app environment?

Why JasperViewer is not working here?

 

Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

The first thing to do would be to read more about Web application architecture and try understand why all this is happening.

 

The /demo/samples/webapp sample provided with the project distribution package would also help understand how to deliver report content to the client browser.

 

I hope this helps.

Teodor

Post edited by: teodord, at: 2007/04/18 09:30

Link to comment
Share on other sites

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...