The moose likes XML and Related Technologies and the fly likes Report  from Java Application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Report  from Java Application" Watch "Report  from Java Application" New topic
Author

Report from Java Application

Amit Agarwal
Ranch Hand

Joined: May 09, 2001
Posts: 92
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
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5781
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.


Open Group Certified Master IT Architect.
Sun Certified Architect(SCEA).
Amit Agarwal
Ranch Hand

Joined: May 09, 2001
Posts: 92
Thanks for your help Ajith
Regards,
Amit
 
IntelliJ Java IDE
 
subject: Report from Java Application
 
Threads others viewed
excel report generation from java
how to cache the page to improve the performance
Crystal Reports 10 with Java
Hyperlink from subreport to master report in Jasperreports
How to cache the page on the server side to improve the performance of application "back" button.
developer file tools