For example, for a CGI GUI to a database search, the first mode of the page would present a bunch of pulldowns to customize SQL generation. Then, on re-submission of the page, the pulldowns would turn into uneditable text, showing the results, and a table of search results might be shown.
Jesse Erlbaum calls these run-modes and he discusses them in his recent Perl.com article in the context of his flexible web application development environment which is completely webserver, database, and architeceture agnostic. That is to say, things run just as well on the popular Linux/MySQL/Apache combo as NT/Access/IIS... which is really saying something given the general preferences of the Perl community.
I suggested object-oriented multiple dispatch in a recent perlmonks.org thread and in this article Erlbaum provides info on how CGI::Application handles this same problem.
I think the question I would ask him is why he thinks that run modes should be easily and uniquely dispatched based on a single parameter, because I once had a certain webpage whose contents was a function of HTTP_REFERER and the value of the submit button. The page whose output was a function of the multiple parameters listed above was a gem display page... In some cases, you were inputting values into this page. In other cases, you were editing values on this page. In other cases, you were checkign the status of this gem. In other cases, you were confirming input values on the page.
In fact from a purely theoretical viewpoint, it is well-known that single-inheritance is not always enough to partition the space of object-oriented computation into separate methods of computation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dynamic Webpage Dispatch with CGI::Application(keywd: Web Software Engr)
by BMaximus (Chaplain) on Jun 07, 2001 at 15:41 UTC | |
by princepawn (Parson) on Jun 07, 2001 at 20:03 UTC | |
by pmas (Hermit) on Jul 06, 2001 at 00:01 UTC | |
|
Re: Dynamic Webpage Dispatch with CGI::Application(keywd: Web Software Engr)
by thabenksta (Pilgrim) on Jun 07, 2001 at 19:32 UTC | |
|
Re: Dynamic Webpage Dispatch with CGI::Application(keywd: Web Software Engr)
by markjugg (Curate) on Jul 18, 2001 at 08:20 UTC |