HTML Page Generation
Webster+ is a new toolset designed to make both the generation of Web pages and setup of Web sites easier. It is part of the Web bundle and provides the following functionality:
(Webster+ was added in PxPlus 2021.)
Why Use Webster+?
Webster+ is designed as an alternative to using iNomads to provide a Web interface to your application. Unlike iNomads, which required few, if any, changes to your application in order to run in a browser, Webster+ is designed to create browser-only applications.
Your application will need to be redesigned to use Webster+ as it uses a standard REST-style interface where every exchange between the workstation/browser and the host is standalone with no residual resources maintained on the server between exchanges.
Simply put, this means when the user selects an option from a Webster+ HTML page, the page contents will be sent to the host, which will start a completely new instance of PxPlus to respond to that request. No values or files other than those derived from the page will be present at the start or remain at the end of the request.
While it may seem daunting to recreate your application, Webster+ provides the ability to make use of much of your existing application logic. For example, NOMADS Queries and the Report Writer all work under Webster+. The File Maintenance Generator also now supports the generation of Webster+ HTML pages.
To run Webster+, you need to have a Web server accept and process the Web requests. This can be Apache, the PxPlus EZWeb server or IIS. These servers need to be setup to accept requests and start processing in a directory where the program webster.pxp must reside. This is generally referred to as the document root directory.
A base line webster.pxp program is provided with PxPlus and is designed to be tailored by you to meet your specific needs. Generally, this program will define the location of the data files, pages and programs through the use of the PxPlus PREFIX directive.
While it is not mandatory, it is desirable for security reasons that this program defines data and program directories outside of the document root directory. This prevents external users from having direct access to the data and programs.
When running a Webster+ based application, many functions and properties are provided by the Webster+ object. This object (*obj/webster) is automatically created by the Apache and EZWeb interfaces during the initial processing of all browser requests.
The object provides methods to update the screen, send messages, force events, along with hide, show, enable and disable controls on a Webster+ page. It also contains a link to the Webster+ bind object (*obj/webbind) that is used to dynamically create HTML pages. See Webster+ HTML Merge/Bind Object.
For a list of all Webster+ object methods and properties, see Methods and Properties.
In addition to your application, Webster+ provides a number of programs, files and HTML pages for use in your application. These include programs/pages to handle security, user registration, password control, email, SMS interfaces, report handling and menus.
All of these tools reside in the *webster system library.
Webster+ Application Design
Webster+ Setup and Configuration