The core of every CGI application seems to be roughly the same:
This post aims to expand and clarify step #2 above with a newly discovered issue.
So now that you understand these steps, let's see why I am bothering posting all this. Let's assume you have presented a user with an information update screen. The user enters some (possibly invalid) data and hits submit. The following then occurs in CGI::Prototype::activate
package MyApp::Update::Validate; sub response { my $response; if (not validated) { $response = 'Redo'; } elsif (not authenticated) { $response = 'NotAuthenticated' } elsif (not authorized) { $response = 'NotAuthorized'; } else { $response = 'HandleUpdate' # model action: update user info } $response = "MyApp::Login::$response"; return $response; }
But the question becomes where do model actions occur and how do we change pages based on this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Prototype - let me clarify the response phase for you
by Anonymous Monk on Feb 05, 2005 at 17:40 UTC | |
|
Re: CGI::Prototype - let me clarify the response phase for you
by cbrandtbuffalo (Deacon) on Feb 07, 2005 at 17:29 UTC | |
|
Re: CGI::Prototype - let me clarify the response phase for you
by metaperl (Curate) on Feb 04, 2005 at 23:27 UTC | |
by dragonchild (Archbishop) on Feb 07, 2005 at 14:20 UTC | |
by Anonymous Monk on Feb 08, 2005 at 02:01 UTC |