Advanced WebScript
In WebScript, you create subclasses of WOComponent, WOSession, and WOApplication and you use declared variables of classes defined in the Foundation Framework, Enterprise Objects Framework, or the WebObjects Framework. For most WebScript applications, this is sufficient.Sometimes, however, you might want to subclass some other class or at least extend the behavior of that class without having to resort to compiled code. For these cases, WebScript allows you to do two things: create a scripted class, which is a scripted subclass of anything other than WOApplication, WOSession, or WOComponent; or create a category, which is a way to extend the behavior of a class without subclassing it.
Table of Contents Next Section