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.
|