Examining Your Project
Project Builder displays a browser showing the contents of your project. The first column lists several categories of files that your project may contain. This section describes some of the most important files you'll use.
- Select Web Components.
- Select Main.wo.
- Main.api is used for components that are going to be reused by other components; you won't use it in this tutorial. See WebObjects Tools and Techniques for more information on creating reusable components.
- Main.html is the HTML template for your page. It can include tags for dynamic WebObjects elements as well as regular HTML. Typically, you do not edit this file directly; you create your page's elements graphically using WebObjects Builder.
- Main.wod is the declarations file that specifies bindings between the dynamic elements and variables or methods in your scripts. Normally, you don't edit this file directly; you use WebObjects Builder to generate the bindings for you.
- Select Classes in the first column of the browser.
The next column displays a list with one element, Main.wo, which is a directory containing the first component in your application. Every application starts with a component called Main.
The files you see displayed in the next column are some of the files you work with when developing your component:
You'll see three files listed in the second column:
- Main.java is a file that allows you to specify behavior associated with the component. You do this by writing code in Java (since you specified Java as the language when you created the project). You use Project Builder to edit this file.
- Application.java and Session.java are other Java files that you may want to work with. In Chapter 2, you'll add code to Application.java and learn about application and session variables.
Table of Contents Next Section