Table of Contents
Previous Section
When WebObjects encounters the name of a reusable component at run time:
NAVCONTROL: NavigationControl {};
it looks for the implemention of the component by following a preset search path. This path is slightly different depending on whether or not the application is compiled.
For scripted applications, WebObjects searches the server's document root in this order:
- 1. In Doc_Root/WebObjects/ApplicationName
- 2.
In Doc_Root/WebObjects
For compiled applications, the search path is:
- 1. In the Objective-C run time for a WODynamicElement subclass with the same name as the reusable component.
- 2. Where the executable file is located. For example, if the application is named MyApp these places are searched:
- NextLibrary/WebObjects/Executables/subpathToApp/
NextLibrary/WebObjects/Executables/subpathToApp/MyApp.app
NextLibrary/WebObjects/Executables/subpathToApp/MyApp.debug
- 3. In Doc_Root/WebObjects/ApplicationName
- 4. In Doc_Root/WebObjects
Table of Contents
Next Section