Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Introduction to WebObjects Web Applications Programming Guide
Web applications are a type of WebObjects application that generates HTML-based dynamic webpages accessed via a client-side web browser. Web applications are object-oriented programs written in Java. Webpages are created from templates called web components. Web components are a combination of a WOComponent Java subclass and an HTML template. You create dynamic content in your webpages by adding dynamic elements to web components and binding them to variables and methods in your application. You can create web components graphically using WebObjects Builder or indirectly using Direct to Web. If you use Direct to Web, you can also freeze components, add them to your project, and edit them using WebObjects Builder.
Who Should Read This Document?
This document focuses on web application programming concepts and tasks. Read this document if you are developing a web application and need to learn more about programming web components, managing state in application and session objects, and using editing contexts. This document also explains how web applications work by tracing the request-response loop and explains how to create web application projects using Xcode. This document covers common tasks that web application developers need to know such as creating an EO model and deploying applications for testing.
Organization of This Document
This document contains the following articles:
How Web Applications Work describes the architecture of web applications and explains the messages invoked by the request-response loop.
Creating Projects explains the Xcode templates you can use to create a web application.
Creating Enterprise Objects explains how to create a simple Enterprise Objects (EO) model—the first step if you are using a back-end database to populate your webpages with dynamic content.
Creating Web Components explains how to create and reuse web components from a programmer's perspective. This article also covers more details about the methods invoked by the request-response loop.
Using the Application and Session Objects explains how to use the Application and Session objects in your web application to maintain state.
If you are new to WebObjects, read How Web Applications Work, Creating Projects, and Creating Enterprise Objects first. Also, read WebObjects Builder User Guide for step-by-step instructions on how to create web components using WebObjects Builder. Read the rest of the articles in this document when you are ready to customize your web application and add advanced features.
For more information on related WebObjects subjects, see these documents"
WebObjects Overview to learn about other WebObjects technologies.
WebObjects Builder User Guide for how to create web components graphically.
WebObjects Direct to Web Guide for how to use Direct to Web to create a web application.
WebObjects Enterprise Objects Programming Guide for an in depth description of Enterprise Objects.
WebObjects 5.3 Reference and for details about the WebObjects and Enterprise Objects APIs.
WebObjects Deployment Guide Using JavaMonitor for details on how to deploy web applications.