Developing Web transactions in EGL

Web transactions work in a fundamentally different way than pageHandlers do. Like a PageHandler, a Web transaction interacts with a Web page. Unlike a PageHandler, a Web transaction depends on a VGUIRecord part to make that interaction possible.

The VGUIRecord part is the model for the data to be shown on the Web page and the data to be collected from the user, if any. For this reason, creating a Web transaction in EGL requires you to create and coordinate two separate but related EGL parts: an EGL program part of type VGWebTransaction and an EGL VGUIRecord part.

Web transaction development in EGL usually involves the following steps:
  1. Create an EGL program of type VGWebTransaction.
  2. Create an EGL VGUIRecord part.
  3. In the VGUIRecord part, define the data structures and control items to be shown on the page.
  4. In the VGWebTransaction, create a variable from the VGUIRecord part.
  5. In a function within the VGWebTransaction, reference the VGUIRecord variable with the converse or show statement. These statements present the Web page, using the data in the VGUIRecord.

Once you have created these parts, you must configure them to work together, along with the JSP that is generated along with the VGUIRecord part.

Related concepts
Segmentation in Web transactions
VGUIRecord part
VGWebTransaction part
IDs for Web applications

Related tasks
Configuring a project to run Web transactions

Related reference
VGWebTransaction program in EGL source format
VGUIRecord part in EGL source format

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.