PATH
WebObjects 4.0 Documentation
>
What's New in WebObjects 4.0
Table of Contents
Previous Section
Changes to WebObjects Application URL
The typical WebObjects application URL now has the following format:
http://
host
[:
port
]/
cgi-bin
/
WebObjects
/
App
[[.woa][/
instance
]/
key
/...
where the variables are defined as follows:
Variable
Description
host
The host name of your computer or localhost.
port
The port number. This is included if you want to direct connect.
cgi-bin
The cgi-bin directory of your server, usually cgi-bin or Scripts.
WebObjects
The name of the CGI adaptor, usually WebObjects or WebObjects.exe.
App
The application name.
This field is no longer the path to the application relative to DocRoot
/WebObjects
. It is simply the application name. The
WOApplicationBaseURL
option provides the path.
instance
The application instance number.
key
The request handler key. This key specifies which WORequestHandler object should be used to process the request. The WORequestHandler class is new in WebObjects 4.0 and is described in the section
WORequestHandler Class
.
...
Information specific to the request handler. Each WORequestHandler uses a different format for the rest of the URL.
The two main request handlers are WOComponentRequestHandler and WODirectActionRequestHandler. WOComponentRequestHandler handles requests in exactly the same manner in which they were handled in earlier releases. Its format for the rest of the URL is:
componentName
/
sessionID
/
elementID
WODirectActionRequestHandler handles direct actions, a new feature in WebObjects 4.0. (You can read more about this feature in
Direct Actions
.) Its URLs have this format:
[
actionClass
|
actionName
|
actionClass
/
actionName
][?
key
=
value
&
key
=
value
.....]
Table of Contents
Next Section