Skip to content

TFPWebAction

Web action with content and template support

Declaration

Source position: fpweb.pp line 34

type

  TFPWebAction = class(TCustomWebAction)
  public
    constructor create;
    destructor destroy;
    procedure Assign;
  published
    property Contents: TStrings; {rw}
    property OnRequest: TWebActionEvent; {rw}
    property Template: TFPTemplate; {rw}
  end;

Description

TFPWebAction extends TCustomWebAction with support for direct content assignment and template processing. This class allows actions to serve static content from string lists or process dynamic content through templates.

The action can handle requests through the OnRequest event and provides built-in content serving capabilities.

Properties

Member Visibility Description
Contents published Static content to serve when the action is executed
Template published Template for dynamic content generation
See all Properties

Methods

Member Visibility Description
Assign public Assigns properties from another object
create public Creates a new TFPWebAction instance
destroy public Destroys the TFPWebAction instance
See all Methods

Events

Member Visibility Description
OnRequest published Event handler called when this action is executed
See all Events

See also

Name Description
TFPWebActions Collection of web actions with advanced functionality
TCustomWebAction
TFPTemplate