WebObjects Info
08/26 - Int. Mac Users
08/27 - Digital Imaging
08/30 - dBug Cafe
09/01 - Beg. Mac Users
09/06 - dBug Cafe

SIG Page Selector

Subscribe to dBug's Event Calendar with iCal Subscribe to dBug Events with iCal
Join dBug Ladybug
Learn about the benefits and sign up as a dBug member here!
Search Search
Every page on the site can be accessed directly through our Site Map.
Support dBug
What computer products are recommended by dBug Members? Check them out right here. Products purchased from our recommended page help support dBug!
Member Music Picks iTMS
WebObjects Books Books
Building a Direct to Web Application

By Mike Grueter
Posted January 22, 2002

This article is a step-by-step guide to building a very simple WebObjects Direct to Web application. It is based on a demonstration given at a WebObjects SIG meetings by SIG Leaders Mike Grueter and Baiss Magnusson, and it makes use of the dBUGWOMembers database created in the Building a WebObjects Application article.

1) Make sure the dBUGWOMembers database is running in the database manager.

2) Launch Project Builder.

3) Choose "New Project..." from the File menu.

4) Select "Direct to Web Application" from the WebObjects project type section, and click the "Next" button.

5) Type "dBUGWOMembersD2W" in the "Project Name" field, set the "Location" to "~/Documents/dBUGWOMembersD2W/", and click the "Next" button.

5a) If you are using FrontBase, add the "FrontBasePlugIn.framework" framework to the project by clicking the "Add..." button, navigating to "/Library/Frameworks", selecting "FrontBasePlugIn.framework", and clicking the "Choose" button. Click the "Next" button.

6) Add the EOModel we created in our "Building a WebObjects Application" demo by clicking the "Add..." button, navigating to "~/Documents/", selecting "dBUGWOMembers.eomodeld", and clicking the "Choose" button. Click the "Next" button.

7) Pick one of the user interface designs ("Neutral Look" for example) and click the "Next" button.

8) Make sure the "Build and launch project now" checkbox is checked and click the "Finish" button.

9) Once the Direct to Web application is running in the web browser, click the "Assistant" checkbox and click the "Login" button. You don't have to worry about a Username or Password for now.

10) In the console output pane of Project Builder, locate and copy the text that looks like: "appletviewer http://localhost:49632/cgi-bin/WebObjects/dBUGWOMembersD2W.woa/wa/D2WActions/openWebAssistant". Open Terminal, paste the copied text, and press the Return key.