Jump to content
Changes to the Jaspersoft community edition download ×

How to deploy iReport .jrxml in to Tomcat web

2004 IR Help

Recommended Posts

By: shekhar - rshekhar2000

How to deploy iReport .jrxml in to Tomcat web

2004-07-07 20:17



Any one give me brife about how to deploy iReport .jrxml in to Tomcat web server 5.0


1. How to call from jsp side with passing parameter?

2. Deployment file list?

3. Sample code pls


Thanks in advance.. iam new to this report..









By: Juan Ara - fi2net@Spain - laureke

RE: How to deploy iReport .jrxml in to Tomcat web

2004-07-08 01:12

You'll have to deploy .jasper (or without .jasper extension due a bug in 0.3.1)

Then populate report from jsp (I strongly recomend a servlet to print bytearrays to OUT!).

In jsp u can try: (using JRDataSource instead of connection, that's what I usually do)


Map parameters=new Map();

//put your report parameters on parameters;

JRDataSource dS=myFactory.getMyDataSource();

//get the JSPWriter (can't remember, it's been a long time since last time I wrote bytes to a jsp)


//import dori.jasper.engine.* for access to JasperPrint

JasperPrint jasperPrint;


ByteArrayOutputStream baos=new ByteArrayOutputStream();

JasperPrintManager myJPM = new JasperPrintManager();







response.setHeader("Content-disposition","attachment; filename=reportName.pdf" );


//Out is what u get with your jspWriter.





Try to do it within a servlet, it'd be much easy.







By: Mark Rhodes - mrhodes2

RE: How to deploy iReport .jrxml in to Tomcat web

2004-07-08 09:35

Also suggest reviewing info from jasper reports project on source forge. There is a more detail manaul available for purchase.


There is another source forge project called 'open reports' that has this capability (select report, pass parameters and display report). You could download project and review the code to see details or use project as is.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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