Jump to content

jasperreport


venu08

Recommended Posts

 Hi

I am using jasper report how can pass the two list values 
I have a two list values .these two list values are different tables 
example:
Person table
Office table 
These are two tables ,in this tables we have a different fields .using this fields we generate .jrxml using ireport .
it is posible to pass the two list values
listperson.add(person);
listOffice.add(office);
 
 
 
I pass the these two values in struts.xml .In pdf file only print the listOffice details not print the listperson details 
How can pass the two list values in struts.xml 
 
 
Thanks
gvr08
 
Code:
 try {            JasperCompileManager.compileReportToFile(                    "S2_WEBAPP/jasper/our_jasper_template.jrxml",                    "S2_WEBAPP/jasper/our_compiled_template.jasper");        } catch (Exception e) {            e.printStackTrace();            return ERROR;        }struts.xml<package name="default" namespace="/" extends="jasperreports-default">    <action name="myJasperTest" class="com.acme.test.action.JasperAction">        <result name="success" type="jasper">            <param name="location">/jasper/our_compiled_template.jasper</param>            <param name="dataSource">listperson</param>            <param name="dataSource">listOffice</param>            <param name="format">PDF</param>        </result>    </action>    ...</package>
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...