• 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

Jasper Reporting

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am learning Java for about couple of months and I ma totally new to Jasper reports.
I came across this article about Java Reporting With Jasper Reports
This article is very old, and I am having difficulties understanding this topic.

I don't understand how to write the code explained in that article

I am using NetBeans and I have included all the jar files

jasperreports-2.0.4.jar
commons-digester-1.7.jar
commons-collections-2.1.jar (commons-collections.jar)
commons-logging-1.0.2.jar
commons-beanutils.jar
iText-2.0.7.jar (used infor PDF exporting)



 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's quite a lot of code in that article. Nobody's going to explain it to you line by line. What specific problems are you having ?
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have manage to call the static report from Java program,

but when I call the reports in which I have used mysql to generate the report I get the following error:

Nov 24, 2011 4:32:50 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 2 column 408: Document root element "jasperReport", must match DOCTYPE root "null".

 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

malik ge wrote:Document root element "jasperReport", must match DOCTYPE root "null".


Googling that error messages gives a number of hits. Take a look through those and see if any of the responses help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic