To generate all the files follow the steps below:

1.Open XML perspective if necessary.

2.Click File—>New—>Java Bean XML Client.

3.Enter your Web project created before as the destination folder.

4.Enter the package name for the Java files. Click Next.

5.Browse for the airline.passenger bean.

6.Select name and membership as the beans you would like to invoke. Click Next.

7.Design Input form as desired. Click Next.

8.Design Result page as desired. Click Next.

9.Enter a prefix to the file names. Click Finish.

The generated servlet implements doGet method. This method returns the input form that we designed before. To test the application, you need to call PassengerXSLServlet directly from the URL (Figure 7-7).

Figure 7-7 Input XML Form screen

Click Submit to call the servlet’s doPost method (Figure 7-8).

Chapter 7. Generators 155

Page 171
Image 171
IBM Version 5 manual Click File-New-Java Bean XML Client, Input XML Form screen