• 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

PDF generate using jasper reports

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dear all,

i have a requirement like this, the data are imported from a legacy database which are saved to the oracle tables. now a scheduler should run periodically generating a pdf report on each imported records. the pdf report is not about the import of data, but report the application users should see when they print it using application. so that this pdf will be issued no matter when they print, each time i need not generate pdf. having said that, the generated pdf should be saved to the file server. the saved path will be saved to the imported table on each row.
i had used pdf servlet to create pdf in struts, but how do i generate it standalone using jasper files and write it to a file system.
i wish to do this module in a proper way (not a junk-hunky code) , so would you please give me ideas on how can i make this thing in oo way.

Thanks to all

Vijay
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not too sure about exact solution. But if you do not wish to update .pdf file each time and want to print ther report with path stored on server then use of peer to peer approach could be the solution for your problem . Just like RSS on news' website. This might be the idea. i am not too sure about it.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So the problem is that a PDF should be generated when the user asks for it, and it should then be stored on the server so it can be served to the next user who asks for it provided the data hasn't changed until then? That doesn't sound too hard; which part is giving you problems?

I'd start by creating the JasperReports file that generates the report; this can be done outside of a servlet container using a desktop app; that way it's easier and faster to develop and debug.

I don't see where P2P (peer to peer) approaches would fit in here at all.
 
Rajubhai Kotwal
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yup...you must be right. I misunderstood the question.I thought requirement is to automatically update pdf file without any upgradation later once generated. Also I thought it' going to be executed within java as there was highlight on oo concept. That's why I thought in this direction.

Best regards.
 
reply
    Bookmark Topic Watch Topic
  • New Topic