
Creating a Compiled Application
This chapter shows you how to use Project Builder and WebObjects Builder to include compiled code in a WebObjects application. The application you'll create in this chapter is called Registration. The first page of the Registration application looks like this:

Registration is similar to the GuestBook application that you created when you worked through the first tutorial in this book, but it's a little more complex. Registration has these additional features:
- It validates the information that the users enter.
- The list of registrants persists between invocations of the application.
- It has multiple submit buttons.
- It has more than one component.
Table of Contents
- Deciding to use compiled code
- Set up Project Builder and WebObjects Builder
- Create a project
- The main method
- Frameworks
- Create custom classes
- Implement RegistrationManager
- Implement Person
- Implement Application.java
- Create the Main component
- Create the Main component's interface
- Create a dictionary class
- Create and bind variables
- Create multiple submit buttons
- Implement the methods
- Bind the submit buttons
- Create a second component
- Create the component's interface
- Create variables
- Bind elements to the script
- Implement Registrants
- Add Registrants.wo to the project
- Build the application
- Run the application
- Deploy the application
- Notes for Objective-C Developers
- Creating an Objective-C project
- Objective-C main function
- Subclassing WebObjects classes
- Accessing compiled code from a script
- Accessing script methods from compiled code
- Using C and C++ in WebObjects applications