Updating your project's template

Typically, the pages displayed by your ZIETrans application consist of two elements:
  • A template containing the static content of the page, such as a company logo, the name of the company, and navigational links (for Web applications).
  • A transformed screen, representing a screen in the host application, on which a user enters and views data

A template allows you to control the overall appearance of your application. A template is a JSP file in ZIETrans Web projects.

Review the examples of transformed screens in A ZIETrans 3270 example and A ZIETrans 5250 example. In the Web example, the transformed screen includes three main areas: a graphic title banner, a vertical navigation bar which contains application keypad buttons, and the host information area. The template provides a consistent appearance for the pages in an application and enables you to personalize your ZIETrans application. You can use the same template in more than one application.

Although every screen in your application will normally use the same template, you can define a screen event so that it applies a transformation that uses a different template. The new template applies to host screens matching the screen event. (See Working with screen events for more information about screen events.)

You can either modify a template that comes with ZIETrans or create a new template. Launching the Create a Template wizard allows you to create a blank template, a template based off one of the templates shipped with ZIETrans, or a Web page (Web projects only). For your ZIETrans Web projects, you may want to create a template based off your company's Web site.

To change the template for your ZIETrans project, follow these steps:
  1. In the ZIETrans Projects view, click the plus sign Plus sign to expand the resources for the project.
  2. Double-click Project Settings to open the project editor.
  3. Click the Template tab at the bottom of the project editor to view the Template page.
  4. Review the templates provided with the ZIETrans Toolkit and select the one that most closely resembles the way you want your application to look. Save your changes.
  5. Use the editor to modify the template. To open the editor, expand your project in the ZIETrans Projects view. For Web projects, expand the Web Content and Templates folders.

You can also change the default project template by expanding the Templates folder. Right-click on the desired template and select Set as Default Template.

For more information about creating and editing templates see Template.