venu08 Posted April 7, 2011 Share Posted April 7, 2011 HiI 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 tableOffice 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 valueslistperson.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 Thanksgvr08 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now