RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebAppComponents Class

TWebAppComponents holds the application components that provide the WebSnap application's functionality.

Pascal
TWebAppComponents = class(TCustomWebAppComponents);
C++
class TWebAppComponents : public TCustomWebAppComponents;

WebDisp

Use TWebAppComponents to centralize access to the main WebSnap components. It initializes the Web context for new request messages and locates the appropriate components to handle the request message. TWebAppComponents publishes properties that provide access to the components that perform many common tasks in a WebSnap application. These properties include 

PageDispatcher, which locates the Web page modules to process incoming request messages. 

AdapterDispatcher, which encodes calls to adapter actions and fields, and which handles HTML form submissions and requests for dynamic images by calling adapter actions and fields. 

Sessions, which manages the sessions for each caller. 

ApplicationAdapter, which implements the fields and actions of the Application variable in server-side scripts. 

EndUserAdapter, which implements the fields and actions of the EndUser variable in server-side scripts. 

UserListService, which maintains a list of end users and their passwords and access privileges. 

LocateFileService, which controls access to the templates and server-side script include files that are used while processing requests. 

DispatchActions, which maintains a list of action items that can respond to request messages. 

The components these properties reference are optional. The WebSnap Application wizard automatically creates components and fills in these properties for any components that you select. 

Add TWebAppComponents to the application module of the WebSnap application to provide centralized access to the other components that govern the behavior of the WebSnap application. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!