You may have noticed that when you dragged the form onto the page, the word "submit" appeared in the object browser at the bottom of the window. This represents the submit method. When you create a form with a Submit button, WebObjects Builder creates a submit method for you and binds the button to the method.
Main's script file appears in a separate window. It contains declarations for the variables and methods listed in Main's object browser, namely aGuest and the submit method. (You don't see the guests array because it's declared in the application script, not the Main component.)
[self.application.guests addObject:aGuest];
To implement this method, you used a language called WebScript. WebScript is the WebObjects scripting language. You can read more about it in "Using WebScript" in the WebObjects Developer's Guide.
Table of Contents Next Section