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
posted
0
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).