Websydian v6.1 online documentationOnline documentation - Websydian v6.5

The Dispatcher Function in WAP Applications

The WAP Dispatcher function is the program at the HTTP server which is called when the user submits an Event Handler request from the WAP client.  The Dispatcher function then in turn calls the WAP Event Handler function corresponding to the request received from the user.

The WAP Dispatcher function is defined in the same way as the Dispatcher function for HTML applications.  Inheritance now must be specified from the WapEventDispatcher pattern, but apart from that the same specifications must be made as specified for the HTML Dispatcher function.

Implementation

Inheritance is specified from the WapEventDispatcher pattern:

MyDispatcher is a FNC WapEventDispatcher

An 'Entry Deck' must be called from the CallFirstPageGenerator function scoped under the WAP Dispatcher, and calls-triples must be added for each WAP Event Handler function in the application.

The INI-settings of the WAP Dispatcher function (including the path for the location of the Deck Templates read by the Deck Generator functions) are specified in the same way as for the Dispatcher function of HTML applications (see also the External Settings sub-section in the Other Uses of the Dispatcher page).