• 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

Report from Java Application

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to generate a report from a Java Application. The Application will be installed on standalone systems. There will be probably no webserver / backend available. This report needs to be printable also.
My guess was to generate a HTML page from the application itself. Should I use DOM to generate such a page or is there a better way out?
I am open to anything else that could help me generate the report. The data for the report will comprise of selected parts of a XML file which is generated from the applicaiotn using DOM (JAXP 1.1).
---------
Amit
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the data is already in the XML format, you should consider using a XSL Transfomrations to generate the output file. Simply store your output formatting logic in the stylesheet and apply transfomrations through the Java program.
IMO this will result in a very clean design since you are separating data from presentation logic. Directly generating HTML output may turnout to be clumsy and hard to maintain.

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your help Ajith
Regards,
Amit
 
reply
    Bookmark Topic Watch Topic
  • New Topic