Reasons for choosing servlet-based application model:
web-based approach (use of XHTML for UI)
to leverage programmer familiarity with servlet concepts
existing Java API (javax.servlet.*)
The xoe-servlet package provides the class library needed to build servlet-based XOE applications. The class org.xoe.servlet.XoeServlet implements the org.xoe.services.IApplicatiion service definition (in xoe-interfaces) and provides an application framework with which subclasses can control application visibility and user interaction.
The methods setDisplayedDocument and getDisplayedDocument provide control of the document being displayed to the user.
To capture user events, XoeServlet defines the member variable defaultCallback which, when invoked, calls the service method of the servlet. For each document passed to setDisplayedDocument, default callbacks are set for each of the common user events that might occur.
The method doGet is the standard entry point for the servlet model. Subclasses can provide custom functionality by overriding this method.
XoeServlet also provides history and clipboard services to subclasses, as well as convenient methods for accessing read-only package data and data from the user's workspace.