Before you begin, you must complete Introducing iSeries Web Application Development.
By the end of this tutorial you will have created a simple e-business customer inquiry application that uses a Web-based front-end to communicate with RPG business logic residing on an iSeries server. You will first create the RPG program or service program for your Web application. You will then create a Web project and invoke the Web Interaction wizard to create the input and output pages and to create the servlet to invoke the RPG program or service program to get data from the iSeries database. Next, you will run the application in the local test environment on your workstation. You will also create an informative error page for when a customer enters an incorrect customer number.
Here is what the finished e-business customer inquiry application looks like.
After the WebSphere server has started, your Web application Customer
Inquiry input page (inquiry.jsp) will display in the workbench
browser:
When you enter a customer number and click the Submit push button,
the Customer Details output page (result.jsp) appears.
Next, you click the
Back button in the browser to return to the Customer Inquiry input
page. Here you enter an incorrect customer number and click
Submit.
An error message appears.
You then add a new output error page to improve the message information so
that if a wrong customer number is entered,
an error page opens instead of a message.
Module recap
You have completed Module 1. Introducing the Web customer inquiry application. You have learned how to:
Now that you have this introductory knowledge of the product iSeries Web application development, you can continue with Module 2. Creating an RPG program if you want to work with an RPG program or Module 3. Creating the RPG service program for your Web application (optional) if you want to work with an RPG service program. |
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.