|
Oak::Application - Class for creating applications in Oak |
Oak::Application - Class for creating applications in Oak
This is the class that will be used to create real applications, the executable file will launch it.
run(MODE)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.
The following exceptions are introduced by Oak::Web::Application
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 (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.
|
Oak::Application - Class for creating applications in Oak |