WebSpeed
Developer’s Guide
Other WebSpeed Components
The WebSpeed development environment also contains the following components:
- SpeedScript—The implementation language for Web objects. SpeedScript includes a built-in Web server input/output (I/O) system that provides access to the CGI environment and Web page output stream for a Web request. For more information on SpeedScript, see SpeedScript." Also see the Progress Language Reference and the Progress Programming Handbook.
- WebSpeed global variables—A rich set of variables available to all Web objects running on the same Agent that maintains the current CGI environment and other information about the current Web request or state-persistent WebSpeed transaction. The definitions of these variables reside in
install-path
/src/web/method/cgidefs.i
.- WebSpeed preprocessor definitions—A set of preprocessor names defined to provide consistent access to the Web environment, especially the Web output stream. The definitions of preprocessor names reside in install-path
/src/web/method/cgidefs.i
.- Function API—A set of standard WebSpeed functions (user-defined SpeedScript functions) that provides a variety of services to Web objects. API functions handle low-level Web object tasks such as formatting URLs and returning specific values from the CGI environment. All API functions are available for your application. The source resides in several include (.i) files under install-path
/src/web/method
, includingcgiutils.i
,cookies.i
, andmessage.i
. Access to these functions in a Web object is provided by including install-path/src/web/method/cgidefs.i.
- Method procedures—A set of standard SpeedScript procedures that provides a variety of services to Web objects. Some method procedures that duplicate API functions are supported for upward compatibility with earlier WebSpeed versions. Others provide unique services to some types of Web objects, such as main-lining the response to Web requests. Some of these you can customize for each Web object. The source for many of the standard method procedures resides in the utility object
web-util.p
under install-path/src/web/objects
.- Control handlers—A special class of procedures that execute in response to pseudo events in HTML-mapping Web objects, and that you can customize. These pseudo event procedures include
web.input
andweb.output
. By overridingweb.input
andweb.output
, you can replace the default data movement between HTML field definitions and corresponding field objects for HTML-mapping Web objects. The default versions of these control handlers for each type of HTML field are located in the tagmap utilities under install-path/src/web/support
. Each utility procedure understands how to convert data between a particular type of HTML form element and a SpeedScript field object of the corresponding type.- tagmap.dat—A file that contains default mappings between HTML form element types and SpeedScript field object types for HTML-mapping Web objects. Each entry in the file includes the location of the default web.input and web.output control handler procedure for the field mapping. This file is also where you can define your own mappings and custom tags for your application. This file resides in your WebSpeed installation directory (install-path/).
- web-disp.p—The control program that runs on all WebSpeed Agents and executes all Web objects. The SpeedScript source resides in install-path
/src/web/object
. It manages various transaction states that can affect the whole application. This SpeedScript procedure is included with the development environment because it is central to the operation of WebSpeed applications. Howweb-disp.p
manages Web objects can affect how and when you might set and evaluate transaction states in each Web object. This program also initializes the utility objectweb-util.p
(residing in the same directory), where most API functions and method procedures reside at run time.- Sample database—WebSpeed comes installed with Sports2000, a sample Progress database for trying out the example code in WebSpeed documentation.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |