With a "normal" page, the presentation is determined by the layout, whilst in the MVC design pattern, views specify the presentation. With normal BSPs, predefined event handlers are available to process events. With MVC on the other hand, events are handled by controllers.
Normal pages are different from controllers especially with regard to event handling and programming. The events of the pages can be matched with the controller methods:
Page events and main controller methods
Page events and sub controller methods
Page events and main controller methods
Page events and main controller methodsA main controller handles both input and output processing, where it uses the central method DO_REQUEST to call the methods specializing in input processing: DO_HANDLE_DATA, DO_HANDLE_EVENT, and DO_FINISH_INPUT. In method DO_REQUEST, input processing must be triggered using DISPATCH_INPUT. This corresponds to the processing steps in the purely page-based BSP programming model that are executed using events OnRequest, OnInputProcessing, OnManipulation, and Layout.
Page events and sub controller methods
Page events and sub controller methodsFrom method DO_REQUEST, the three following methods required for input processing are called:
DO_HANDLE_DATA
DO_HANDLE_EVENT
DO_FINISH_INPUT