Introducing the Web customer inquiry application

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:
Workbench browser
When you enter a customer number and click the Submit push button, the Customer Details output page (result.jsp) appears.
Result page

Next, you click the Back button Back button in the browser to return to the Customer Inquiry input page. Here you enter an incorrect customer number and click Submit.
Incorrect input
An error message appears.
Error message
You then add a new output error page to improve the message information so that if a wrong customer number is entered,
Entering wrong customer number
an error page opens instead of a message.
Error Page

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.