Documentation Archive Developer
Search
Table of Contents Previous Section

Designing the Main Page

Every WebObjects application has at least one component-usually named Main-that represents the first page the application displays. In Movies, the Main component represents the MovieSearch page.

To design the Main component, you'll use the WebObjects Application Wizard. The wizard performs all the setup that's necessary to fetch database records and display them in a web page. Specifying different wizard options yields different pages: The MovieSearch page is an example of one of the many different layouts you can generate with the wizard.

Starting the WebObjects Application Wizard

  1. In Project Builder, choose ProjectNew.

  2. In the New Project panel, select WebObjects Application from the Project Type pop-up list.

  3. Click Browse.

  4. In the Open panel, navigate to a directory under DocumentRoot/WebObjects, where you want to create your new project.

  5. Type Movies in the "File name" field.

  6. Click Save.

  7. In the New Project panel, click OK.

    This starts the WebObjects Application Wizard.

  8. Choose Wizard under Available Assistance.

    With this option, the wizard guides you through the creation of a Main component for your application. When you finish, you can immediately build and run your application without performing any additional steps and without adding any code.

  9. Choose Java as the primary language.

  10. Click Next.

Table of Contents Next Section