1. A method in a data processing system for processing a JavaServer page, the method comprising: 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.