• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

help on JasperReport with JavaBean as DataSource

 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
    • Quote
    • Report post to moderator
    thanks Dude, I will try and let you know.

    -Kalyan
     
    "How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic