Using Direct Actions

In this section we shall look at the merits and demerits of statelessness and direct actions, as well as build a second, more sophisticated, example application.

Observing Transient State

This is an ideal time to compare both the original Hello application and the HelloDirect application. To do so, open a browser window to both applications; enter some text, submit, and repeat. Notice how the results are pretty much identical.

But how is this? HelloDirect is a stateless application. How does it appear to maintain state? Well, the state of the HelloDirect application can be considered to be transient. It lives neither on the browser nor the server but in limbo, passing between pages via the URL.

Another thing you might like ...

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.