23. A computer program product comprising a computer usable storage medium having stored therein computer usable program code for processing a JavaServer page, the computer usable program code, which when executed by a computer hardware system, causes the computer hardware system to perform: translating the JavaServer page into a document object model object; configuring a set of visitor classes for invocation in a selected sequence; and processing the document object model using the set of visitor classes in the selected sequence to perform a desired set of custom functions on the document object model.
30. The computer program product of claim 23 , wherein the document object model object includes a set of nodes and wherein the computer usable program code further causes the computer hardware system to perform: invoking methods in the set of visitor classes on each node in the set of nodes in the selected sequence.