Back to Java Users Group Home Print this page

Java Users Group

July 2002 Meeting Information

July 9, 2002
Generating Documents with DocumentBuilder

This month's meeting is based on an article published in the June 2002 issue of Java Solutions, a bimonthly supplement to the C/C++ Users Journal. Dynamically building HTML or XML documents can be tedious due to the necessary string building used for obtaining data from a data source such as a database. Hard-coded values, such as database tables or fields, bind the application to those values, and changing those values usually requires a recompile, retest, and redeploy of the application. DocumentBuilder eliminates that dependency, and is based on a concept that merges a document template with data to produce something useful. Field codes are placed within a specific template, and DocumentBuilder replaces the codes with data. The article describes three implementations of DocumentBuilder: ObjectDocumentBuilder, ResultSetDocumentBuilder, and HashtableDocumentBuilder. We will concentrate primarily on ResultSetDocumentBuilder as we will review an application using an Access or SQL Server 7 database for dynamically building HTML and XML documents.

Meetings are held every second Tuesday of the month at the Scotch Plains Rescue Squad second floor meeting hall starting promptly at 7:30pm. Meetings are open to the public, and visitors are encouraged to join ACGNJ.

SIG Leader Mike Redlich
E-Mail mike@redlich.net
Phone: (908) 246-0410