Your First D2W Project

Version 5.1 by Pascal Robert on 2012/07/30 05:47

Information

 Work in progress

Now that our data model is in a framework and that we have a basic REST application working, we are going to build a DirectToWeb application to manage the blog system. But first, what is DirectToWeb (D2W)? D2W is a rules-based application model where you can change the behavior of the application by rules. D2W is perfect for "admin" apps, for applications that share a common model or for "CRUD" (C{}reate R{}ead U{}pdate D{}estroy) applications.

So like I said, we are going to build a D2W app that will allow us to update and create blog entries and authors. Let's start by creating a Wonder D2W Application in Eclipse: Capture d’écran 2012-07-29 à 14.22.22.png
Name it D2WBlog. The next step is to link the BlogCommon framework to the D2W app. To do so, right-click on D2WBlog and select Build Path > Configure Build Path.  Capture d’écran 2012-07-29 à 14.25.46.png

In the Libraries tab, click on Add Library. Select WebObjects Frameworks and click Next. Check BlogCommon and H2PlugIn from the list and click Finish. The Libraries tab should look like this:
Capture d’écran 2012-07-29 à 14.32.51.png

It's time to run the app. Right-click on Application.java