• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help on JasperReport with JavaBean as DataSource

 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my project we are using EJB3, Struts 2, iReport 3.7For report generation .
i have no idea about report generation with Javabean as DataSource?.
Please help me for the same...





 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am also new to Jasper Reports, but I got this link. May be it will help you.

http://knol.google.com/k/jasper-reports-working-with-beans-and-sub-report#view-comment-0_33

If you are able to generate jasper reports with java bean as datasource please let me know.

thanks,
Kalyan
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
thank you buddy...
about java bean datasource worked upto an extend....

i will list out what i did for the same

  • Create a class which have a static method with a return type of Collection<Bean
  • Make a jar file of the packages ...all what we required
  • in iReport goto Tools-Options-Class Path-Add Our Jar
  • Create a new data Source-Java Bean data Source-give a Name:specify the Class Name of our DataSource Class which returns Collection-specify method
  • Test it and Save
  • Now make a report in Design Query you can simply get the Fields by saying the Class
  •  
    Kalyan Garlapati
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    thanks Dude, I will try and let you know.

    -Kalyan
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic