304 IBM WebSphere Host Publisher Version 3.5
4. The output page is dynamically built including the obtained output variables.
5. The error page is called in case of an error.
10.2 Sample scenario
In this sample scenario, a previously created Integration Object is used to
develop an application using the Host Publisher Studio to generate the input,
output (execution) and error JavaServer Pages (JSPs). The Host Publisher
Studio provides a development environment where you can create Web
applications and manipulate the Integration Objects created in Host Access and
Database Access. It is useful to note that you are not required to use the Studio
to create your application. However, it is recommended for a quick and easy way
to initiate the development of applications.
These are the recommended steps to create an application using the Host
Publisher Studio:
Step 1: Create a new application
Launch the IBM WebSphere Host Publisher Studio and start a new application by
clicking File -> New Application..., as shown in Figure 10-2.
Figure 10-2 New application
Chapter 10. Creating applications 305
Step 2: Provide the application name
In this step, you provide a name for your application (see Figure 10-3) so that it
can be identified when you are ready to transfer and deploy it.
Figure 10-3 Naming the application
Step 3: Start building the application
As illustrated in Figure 10-4, there are two ways to start building your application.
Select the I prefer to start with data option if you are familiar with the Integration
Object input and output variables (properties) and want to create the input,
output and error pages. The second option allows you to start creating pages if
you already have a page layout for your application. In this sample scenario, the
option to start with data is selected.
Figure 10-4 Selecting how you want to start
306 IBM WebSphere Host Publisher Version 3.5
Step 4: Import the Integration Object
You need to import the Integration Object(s) that will be used for this new
application; to do so, click Import (see Figure 10-5) and select all the Integration
Objects you need.
Figure 10-5 Importing the Integration Object
Step 5: Define the Integration Object
After importing the Integration Object, define how it will be used. For this, select
the Integration Object and click Define (see Figure 10-6).
Figure 10-6 Defining how the Integration Object will be used
Chapter 10. Creating applications 307
At this time, the Host Publisher Studio knows which input and output properties
are required to be set (setters) and obtained (getters) for the defined Integration
Object.
Step 6: Output (execution) page name
In this step, Host Publisher Studio will start collecting information to create the
input and output (execution) JSPs. As shown in Figure 10-7, you are first
required to enter the name of the output page that will also invoke your
Integration Object.
Figure 10-7 Specifying the output page name
Step 7: Define input data
Host Publisher Studio has detected that the Integration Object has an input
property with name accountVar. This input property needs to be set prior to
invoking the Integration Object, therefore you are required to define how this
value should be obtained. In most cases, it will typically be requested using an
input page containing a form. As shown in Figure 10-8 on page 308, click Define
to proceed with this definition.
308 IBM WebSphere Host Publisher Version 3.5
Figure 10-8 Providing input data
Step 8: Input fields
In this step, you are required to define how the input fields are obtained. In this
sample scenario, there is only one field and it will be a new input field.
Figure 10-9 illustrates how the option is selected for a new input field.
Figure 10-9 New input field
Step 9: Create a new form
In this step, you are required to select whether you want to create a new form or
use an existing form if already created. Figure 10-10 on page 309 shows the
selection needed to create a new form.

Get A Comprehensive Guide to IBM WebSphere Host Publisher Version 3.5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.