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.