Building Mini-Applications Using Direct Actions
In this next section we're going to build a simple Feedback form as a stateless mini-application. Mostly as an exercise in using direct actions, but we'll also learn about e-mail composition and delivery using WebObjects.
Using E-mail Delivery in WebObjects
Create a new WebObjects Application project Feedback.
Follow the instructions for setting up the basic application:
1. | Make the application handle direct-action requests by default. |
2. | On the Main page, add a form and static fields for from, subject, and a WOText element for the contents. You might want to layout the form in a table. See Figure 4.1
Figure 4.1. Laying out the feedback form component. |
Get WebObjects® Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.