beautypg.com

Installing applications – Apple WebObjects 3.5 User Manual

Page 159

background image

Installing Applications

159

Consider implementing a batching display mechanism to display the
information in the table. For example, if the array contains hundreds of
entries, you might choose to only display the first 10 and provide a
button that allows the user to see the next 10 entries. If the repetition
is populated by a WODisplayGroup, you can use WODisplayGroup’s

setNumberOfObjectsPerBatch:

method to set up this batching, and it then

controls the display for you. For more information, see the
WODisplayGroup class specification in the online book WebObjects
Class Reference
.

Installing Applications

When an application is ready to be deployed, do the following in Project
Builder:

1. Click the Inspector button to open the Build Attributes Inspector. In

the “Install in” field, type

$(NEXT_ROOT)/NextLibrary/WOApps

.

If you’re installing a framework, type

$(NEXT_ROOT)/NextLibrary/Frameworks

.

2. If your project contains web server resources, go to the

Makefile.preamble

file under Supporting Files. Uncomment the line that defines this
macro:

INSTALLDIR_WEBSERVER

3. In the Project Build panel, click the Checkmark button to bring up the

Build Options panel.

4. Choose “install” as the build target, and close the Build Options panel.

5. Click the Build button to start the build and installation process.

Assuming that your application is named

MyApp.woa

, this procedure installs

these directories:

NeXT_ROOT

/NextLibrary/WOApps/MyApp.woa

MyApp[.exe]
Resources/
WebServerResources/

/WebObjects/MyApp.woa

WebServerResources/

When the WebObjects adaptor first receives an HTTP request, the adaptor
looks for an executable in

/WebObjects

and