Table of Contents Previous Section
Direct To Web
Direct to Web is a technology that provides a quick and easy method of creating a web application that accesses a database. It lets you experiment and prototype, while also allowing you the flexibility to access the full power of WebObjects.
- First, you create a WebObjects project and specify a model to use. Direct to Web uses the model, which defines the mapping between your database and enterprise object classes, to generate an application that provides an interface to your database. This application consists of a set of pages that allow you to do queries on the entities in your database, display results, and add and delete records.
- To change the way the pages are presented, you can use the WebAssistant, which is a Java applet that runs in your web browser. For each page in your application, the WebAssistant allows you to specify which pages are shown, which properties are shown, how these properties are displayed, and the order in which they are listed. You can experiment with different configurations until you are satisfied, without writing any code.
- If you want to do further customization beyond what the WebAssistant provides, you can "freeze" any or all of the pages in your application as WebObjects components. This gives you the full power of WebObjects: you can modify a component's layout using WebObjects Builder, and you can customize its behavior by writing Java code using Project Builder.
A complete and correct model file with all the right relationships defined is key to creating a WebObjects application with Direct to Web.
- Embedding Direct to Web components in your pages; these include query forms, lists, or edit/inspect forms.
- Linking to dynamically generated Direct to Web pages
Table of Contents Next Section