NAME

Oak::Application - Class for creating applications in Oak

DESCRIPTION

This is the class that will be used to create real applications, the executable file will launch it.

HIERARCHY

Oak::Object
Oak::Application
Oak::Web::Application

METHODS

run(MODE)

Runs the application, receives the requests and pass to the toplevel components. Receives the mode of operation, that can be CGI or FCGI

Oak::Web::Application generates the message (POST => $cgiobj)

The request must have the "__owa_origin__" parameter to distinguish which toplevel component to use.

The function run creates a Oak::Web::Session object in $::SESSION. You can use it to set session attributes.

EXCEPTIONS

The following exceptions are introduced by Oak::Web::Application

Oak::Web::Application::Error::BrokenDependencies

You tryied to user or CGI or FCGI, but it failed to require or "CGI" or "CGI::Fast".

EXAMPLES

my $app = new Oak::Web::Application
  (
   "formCreate" => ["MyApp::TopLevel1", "TopLevel1.xml"],
   "formList" => ["MyApp::TopLevel2", "TopLevel2.xml"],
   "formSearch" => ["MyApp::TopLevel3", "TopLevel3.xml"],
   "default" => "formCreate"
  );

$app->run(mode => CGI);

# OR

$app->run(mode => FCGI);

# OR

$app->run;			# will use mode => FCGI

COPYRIGHT

Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.