The structure of a webobjects application project – Apple WebObjects 3.5 Tools And Techniques User Manual
Page 12

Chapter 1
Setting Up WebObjects Applications
12
Java and Objective-C are compiled languages. WebScript, which is based on
Objective-C, is a scripted language. A scripted language allows you to make
changes to your application while it is running. When you use compiled code,
your application runs faster, but you must build your application before running
it.
Java files have the extension
.java
, Objective-C files have the extension
.m
, and
WebScript files have the extension
.wos
.
The language you choose in the Wizard applies to the following files:
•
The Main component. A component in WebObjects represents a page in your
application (or possibly part of a page). When you create your project,
Project Builder provides you with an initial component called Main. The
component’s code file implements the behavior of the component.
•
The application and session code files. Application code contains variables
and methods that affect the entire application. Session code contains
variables and methods that affect a single user’s session.
If, for example, you specify Java as your primary language, the Wizard will create
the files
Application.java
,
Session.java
, and
Main.java
for you. You can mix languages in a
project by choosing a different language when you create other components.
The Structure of a WebObjects Application Project
On disk, your project is a folder whose name is the project name. The project
folder contains all the files in your project. The file
PB.project
is the project file. You
can open a project by double-clicking this file.
Double-click here to open
your project.