RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebAppComponents.InitModule Method

Initializes a Web module before the WebSnap application uses it to handle the current request.

Pascal
procedure InitModule(AModule: TComponent); override;
C++
virtual __fastcall InitModule(TComponent * AModule);

InitModule is called whenever the WebSnap application instantiates a Web module to handle the current request. InitModule handles any initializations, including assigning itself as the Web dispatcher to any content producers in the Web module, generating an OnActivate event on the Web module, and allowing the Web dispatcher that is the value of the DispatchActions property to perform its own initializations. 

AWebModule is the Web module component to initialize. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!