This document explains how to build GNUstepWeb applications, explain differences from Apple WebObjects and known bug of these libraries.
Follow these guidelines to maintain your GSWeb application wrapper.
In order to debug your application compile it with "gmake debug=yes" and install with "gmake install debug=yes". You'll find your application in GNUSTEP_DOMAIN/GNUSTEP_LIBRARY/GSWApps/MyApp.gswa
Now you can enable debug starting your app with -GSWebDebug=<option>
There are two special options: all and most. The following table explain which options enable.
NOTE: GSWeb will search componentes first in GNUSTEP_SYSTEM_ROOT/GSWApps/Myapp.gswa so before start your debug app remove or update MyApp.gswa wrapper with "gmake install".
By default GSWeb will start your application in Multi Thread mode. In order to use this facility your libobjc.a must be compiled with thread support, else you app won't work.
If you don't have ObjC thread support start your app with -GSWMTEnabled NO
WebScript is not implemented yet, you can only use compiled components.
You must use Objective-C code, at the moment there aren't equivalent Java classes.
The following table explain suffix differences:
If you need WO name space compatibility set to 1 GSWEB_NAMES in GSWeb.framework/GSWConfig.h and recompile all the libraries.
In order to make your application working you can follow these guidelines:
1. Always create an Application and Session class also if you don't use them.
@interface Session:GSWSession
{
}
@end
@interface Application:GSWApplication
{
}
@end
@implementation Session
@end
@implementation Application
@end
2. Start your application with -GSWHost hostname else it will crash.
4. The HTML parser has some problems with percentage fields, eg:
<TABLE WIDTH=100% BORDER="0"> This does NOT work <TABLE WIDTH="100%" BORDER="0"> This work
You can find WebObjects documentation and good tutorials
WebObjects is a trademark of Apple Computer, Inc.