The design of the Ajax: Hello! Sample application was centered around its purpose; to demonstrate in a simple manner
how to approach development of Ajax-based applications with the Dojo Toolkit in a JavaTM EE environment. To meet these goals,
the two parts of a Java EE application, the client side and the server side were organized into simple operations that still
perform a useful function. It follows the basic pattern that Java EE applications use when incorporating Ajax technologies.
Figure 1: General Ajax based Java EE Application:
The client is the Web page that is served to the browser. In the Web page Ajax, widgets are instantiated and browser events are connected to those widgets. The events then drive partial page updates and data requests without causing a full page reload. For more specific information on the client design, see The Design of the Ajax: Hello! Sample Application: Client.
The server provides the infrastructure for processing services as well as serving Web pages. In this application, the server side are services that communicate with the client through JavaScriptTM Object Notation (JSON) over XmlHttpRequest (XHR) connections. For more specific information on the server side design, see The Design of the Ajax: Hello! Sample Application: Server.