Ivan Toshkov | 26 Apr 2004 12:13

Webactions in Portable AllegroServe


After reading the webactions documentation and tutorial, I've decided to give 
it a try and since I don't have ACL, I've used PortableAserve on CMUCL and 
SBCL.  I had to tweak portableaserve a little, so that I can compile and run 
webactions and I've included the patch to the latest CVS (as of April 26, 
2004).

I've sent (an older version of) this patch to Rudi Schlatte, but he is 
currently busy with other things and I don't know when it'll be in CVS.  So, 
I've decided to post it here, too.

I hacked a little hotel reservation system (only the search part), but I had 
to implement many things in the CLP part, which probably should belong to the 
framework.  E.g. loop constructs, transfer of data between session, query and 
request, slot access, etc.

So, anybody else tried webactions and want to share their experience?

--
Ivan
Kevin Rosenberg | 26 Apr 2004 18:58
Favicon

Re: Webactions in Portable AllegroServe

Ivan Toshkov wrote:
> SBCL.  I had to tweak portableaserve a little, so that I can compile
> and run webactions and I've included the patch to the latest CVS (as
> of April 26, 2004).

Thanks for the patch, I'll review it and can apply it to CVS.

> So, anybody else tried webactions and want to share their experience?

I use webactions with Allegro on for the Meme web site:
http://meme.b9.com. It's worked out well for handling logins and
transparently following pages. For example, to search on Meme requires
a user to be logged in. So, my map entry for search is:
  ("search" action-check-login action-search "search.clp")

With that, the user is prompted to logged in if they are not already
logged in and then and the results of any pending searches are
computed, then the result page is displayed. So, the action-check-login
doesn't need to know where to direct after after the login is
performed and the action-search can just assume that a there is valid
user login for extracting the preferences of the user.

Kevin
Ivan Toshkov | 27 Apr 2004 17:40

Re: Re: [Lispweb] Webactions in Portable AllegroServe


On Monday 26 April 2004 19:58, Kevin Rosenberg wrote:
> Ivan Toshkov wrote:
> > SBCL.  I had to tweak portableaserve a little, so that I can compile
> > and run webactions and I've included the patch to the latest CVS (as
> > of April 26, 2004).
>
> Thanks for the patch, I'll review it and can apply it to CVS.

Great!  I've mechanically changed most of the occurrences of `excl' to 
`acl-compat.excl' and overdid it.  The attached patch fixes this.

>
> > So, anybody else tried webactions and want to share their experience?
>
> I use webactions with Allegro on for the Meme web site:
> http://meme.b9.com. It's worked out well for handling logins and
> transparently following pages. For example, to search on Meme requires
> a user to be logged in. So, my map entry for search is:
>   ("search" action-check-login action-search "search.clp")
>
> With that, the user is prompted to logged in if they are not already
> logged in and then and the results of any pending searches are
> computed, then the result page is displayed. So, the action-check-login
> doesn't need to know where to direct after after the login is
> performed and the action-search can just assume that a there is valid
> user login for extracting the preferences of the user.
>
> Kevin
>
(Continue reading)

Kevin Rosenberg | 27 Apr 2004 22:11
Favicon

Re: Re: [Lispweb] Webactions in Portable AllegroServe


Ivan Toshkov wrote:
> That's what made me try webactions in the first place.  My problems come from 
> the view (CLP) part.  For example, I'm getting hotel availability and want to 
> show it to the user.  After realizing there is no loop in CLP I first used 
> HTMLGEN package.  But with this I loose using Mozilla composer and the like.  
> So I've created things like dolist, dotimes, nth, slot-value, etc for CLP.  

Thanks for the patch, committed.

I use LML2 (which is based on HTMLGEN) for all of my output in
Meme. I find it easier to reuse components, take advantage of macros,
and have a consistent styling using Lisp for HTML generation.

--

-- 
Kevin Rosenberg
kevin <at> rosenberg.net
Ivan Toshkov | 28 Apr 2004 09:01

Re: Re: [Lispweb] Webactions in Portable AllegroServe

On Tuesday 27 April 2004 23:11, Kevin Rosenberg wrote:
> I use LML2 (which is based on HTMLGEN) for all of my output in
> Meme. I find it easier to reuse components, take advantage of macros,
> and have a consistent styling using Lisp for HTML generation.

Can you give a small example of how you use it with webactions?

--
Ivan

Gmane