Web-based applications are typically required to be highly customizable and configurable. New application requirements have to be introduced rapidly, often without stopping the running application process. Moreover, in many cases the same business logic has to be presented to different channels and/or user interfaces. In this paper we present a dynamic page template architecture for decomposing configurable and representational fragments of the application from the business logic. Page templates consist of static XML files and of dynamic class definitions. The XML-based page templates can be used for declarative definitions of configurable fragments, say, by the end-user with a graphical tool. The page template classes can be used for behavior specification, say, for defining common styles of decoration of the presented pages. Both parts are dynamically loaded into the web application environment and composed with the web objects. Thus, the configurable and representational fragments ...