PATH
Documentation > WebObjects 4.5 >
Creating a Java Client Application: A Tutorial
The WOJavaClientApplet Component
The "Applet" WEBOBJECT tag in the HTML above represents a WOJavaClientApplet component. Java Client applications use this component to create an applet (of class com.apple.client.interface.EOApplet) and to pass this applet several parameters, some standard, such as size and codebase, and others specific to Java Client applications, such as channel class and interface-controller class.
The Main.wod file created by Project Builder contains the following default bindings for WOJavaClientApplet:
Applet: WOJavaClientApplet {
height = 512;
width = 512;
interfaceControllerClassName =
"studiomanager.client.StudioManager";
useJavaPlugin = NO;
}
Note that Project Builder automatically provides the binding for interfaceControllerClassName (see "
The Interface Controller
," above for details).
The WOJavaClientApplet bindings specific to the EODistribution layer are:
Property
|
Value
|
useJavaPlugin
|
If YES, generates HTML that causes Internet Explorer and Netscape browsers to use SunSoft's Java Plug-in.
|
distributionContext
|
The EODistributionContext that the applet uses to handle requests from the client. If no binding is specified, WOJavaClientApplet instantiates one with the session's default editing context and sets the session as the delegate of the distribution context and itself as the invocation target.
|
interfaceControllerClassName
|
The name of the initial EOInterfaceController subclass.
|
applicationClassName
|
The name of the EOApplication subclass used for the shared application object.
|
language
|
The preferred language for the application. This corresponds to a localized language
directory in the application's resources. When searching for localized resources, Java Client first looks in the
directory of the preferred language, next
(if English is not the preferred language), and finally
for non-localized resources.
|
channelClassName
|
The class name of the distribution channel to be used by the client, EOHTTPChannel by default.
|
© 1999 Apple Computer, Inc. (Last Updated 13 Sep 99)