This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

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
     
    You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
    Java file APIs (DOC, XLS, PDF, and many more)
    https://products.aspose.com/total/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!