Create Model 1 Web pages

The traditional HATS approach to building a JSP is called Model 1.
Note:
This is the only approach supported for HATS portlets.
In this model, a single JSP contains:
  • The information to be presented to the user
  • Formatting tags that specify how the information is displayed
  • Control logic that controls which page is called next

In the HATS Projects view, right click on the name of an Integration Object and select Create Model 1 Web Pages. Specify the input and output page names along with the destination, or accept the default names created from the Integration Object name. You can also specify Page generation options by selecting Append to existing files or Overwrite existing files. Click Next after completing your selections.

When you create Model 1 Web pages, you define two pages: an input page, which gathers the data required by the Integration Object, and an output page, which presents the results after the Integration Object is run.

On the Define inputs page, you can define an input control for each input property. HTML controls are used as defaults. To change a control, select an input property and click Edit. You have the option to render input properties using either HTML controls or Dojo widgets. You can mix HTML controls and Dojo widgets on the same Model 1 web page. You can add the leading text for the control and, where necessary, configure the selected control. Instead of using an input control, you can elect to set the input property to the value of a global variable. You also have the option to store the input property value as a global variable (global variables used by Integration Objects are shared). When the input page is run, it does not pass control directly to the output page; it returns control to the HATS application allowing global variables to be set and other actions to be taken as needed.
Note:
  1. If your macro has no prompts, there will be no input page.
  2. You can use Dojo widgets only in HATS Web projects, not in HATS portlet projects.

On the Define outputs page, you select the output properties of the Integration Object that you want to display. To change a control, select an output property and click Edit. You have the option to render output properties using either HTML controls, Dojo widgets, or normal text. You can mix HTML controls and Dojo widgets on the same Model 1 Web page. You can add the leading text for the control. The output JSP contains code to initialize the Integration Object, to set the Integration Object properties from global variables, to run the Integration Object, and to display the Integration Object output.

The pages you create go in the Web Content/Model 1 Pages folder in the HATS Projects view. To edit a Web page and invoke the Rich Page Editor, double-click on the name of the page. To test your pages, right-click on the input page (or output page if there are no inputs) and select either Debug on Server or Run on Server.

Note:
When using Model 1 Web pages for Integration Objects in HATS portlet projects, note the following considerations
  • If you copy or rename a HATS standard portlet project, the Model 1 JSPs generated from a standalone or first in chain Integration Object refer to the wrong connection specification. You must modify the following statement:
    SignOn.setHPubStartPoolName(“<new_project_name>/<default_connection>”);
  • When you generate a portlet project from a Web project, the Model 1 JSP pages previously generated from Integration Objects do not change. You must regenerate the pages, or make the changes manually.
  • You can use Dojo widgets only in HATS Web projects, not in HATS portlet projects.