Testing With a Web Server
When you're working in direct connect mode, few issues arise with respect to rapid turnaround. If your application has features which require a web server be used even for testing, however, there are a couple of things to know to make rapid turnaround work for you. Specifically, since you are relying on the web server to locate files within WebServerResources, you must follow these guidelines:
- Your projects must reside somewhere below your web server's document root.
- NSProjectSearchPath should point to all projects of interest.
- For application projects, the WOApplicationBaseURL user default should specify the directory containing the application project. For example, if your application's project folder is: c:\web\docroot\WebObjects\MyApp then the WOApplicationBaseURL user default must be "/WebObjects".
- For framework projects, the WOFrameworksBaseURL user default should specify the directory containing all framework projects used by the application. For example, if your application uses MyFramework.framework and that project resides in: c:\web\docroot\WebObjects\Frameworks\MyFramework then the WOFrameworksBaseURL user default must be "/WebObjects/Frameworks".
Also, while it is possible to point WOApplicationBaseURL and WOFrameworksBaseURL to other locations, it is not recommended that WOFrameworksBaseURL be moved since all WebObjects applications use WOExtensions.framework, which resides in the default location. If you set WOFrameworksBaseURL to point elsewhere, one side effect will be that the images in the "Raised Exception" panel will not render.
© 1999 Apple Computer, Inc. (Last Updated July 27 99)