Ian Sparks [mailto:[EMAIL PROTECTED] wrote:
> 
> You have seen this article linked from the daily python list.
> 
> www.freeroller.net/page/alexkrut

After various local DNS issues, I managed to get a page which looked as if
it were some kind of proxy error.

> In it Alex describes using Cocoon and ATCT
> (http://www.velare.com/product/atct.htm) to provide procedural flow to a
> webapp.

Patent pending...

> This example in Java :
> 
>             //will send the first registration page and wait until user
> submits information
>             sendPageAndWait("/registration1.jsp", null);
>             UserBean ub = getUser();
>             ub.setFirstName(getRequestParameter("firstName"));
>             ub.setLastName(getRequestParameter("lastName"));
>  
> ub.setAge(Integer.parseInt(this.getRequestParameter("age")));
>             //will send the second registration page and wait until user
> submits information
>             sendPageAndWait("/registration2.jsp", null);
> 
> I have to say that I find the idea of this very attractive because it
> makes process flow very straightforward.

I suppose it's a bit like what EasyGui does for Python GUI programming -
instead of callbacks, the developer gets to keep their procedural or
sequential paradigm.

> I wonder if there is a way of programming in this paradigm for Webware? 

I can imagine that it's possible generally by treating your server-side
resources almost like clients, with a communications layer as an
intermediary, giving control to those resources and then suspending them
when they call back into the layer to send a response to the actual Web
client. You can certainly achieve this "reentrant calling" with various
distributed object technologies - I managed to do it with ILU years ago.

As for Webware, I suppose one would have to change the way threads are
employed and to extend the session management to permit communication with
existing threads representing "open" activities. I once saw a reference to a
paper or article employing generators in a novel way, too - I think Aaron
Watters was the author, but I can't find a reference to it on Google.

The big question, however, is: what happens to all those threads if the
average user never fills in the first registration page? ;-)

Paul


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to