You add controls to 4GL JSP pages the same way you add them to other Web pages. When you add controls to 4GL JSP pages, however, the server scriptable property is turned on by default.
The server scriptable property does the following:
Creates a server object that represents the control
For server scripts, you access the object as a page variable that has the same name as the control (which is why controls must have unique names). The control is added under the Server Side branch in the Page tab of the System Tree when the server scriptable property is selected.
Supports binding to properties of EAServer components and other page data (from page parameters, page variables, and session variables)
4GL pages provide enhanced support for HTML form field controls. Several controls present special conditions on 4GL JSP pages:
Hidden text This is a client-side control. It is not server scriptable, but is available for 4GL-enabled Web pages only.
Static text The Static Text control is a specialized text field that can be manipulated by server scripts. The client cannot change the value of this text. The Static Text control is available on 4GL JSP pages only.
Check box The value of a check box sent to the server from a 4GL JSP page is a boolean value (T or F). The Value To Send To Server field on the Checkbox Properties dialog box for a 4GL JSP page is grayed.
Standard button A standard button on a 4GL JSP page can work like a submit button if you add a server redirect on the ServerAction event. However, if you code the client-side onclick event to return False, the ServerAction event will not be triggered.
Submit button The client-side onclick event for a submit button is triggered only on a 4GL-enabled Web page. If you code this event to return False, a form submit (either to the current page in a self-link or to a URL that you select on the Destination page of the Page Properties dialog box) does not occur and the ServerAction event is not triggered.
Radio button Radio buttons are different from other controls because they function as a group. The server scriptable property is either enabled or disabled for all buttons in the group. Each button in the group uses the same binding and has the same properties. If you make a change to a binding or a property for one button, the change takes effect for the others too.