Create Model 1 Web pages

The traditional ZIETrans approach to building a JSP is called Model 1.

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 ZIETrans 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 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, or normal text. You can mix HTML controls 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 ZIETrans 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.