[Lispweb] Re: Webactions with CL-SQL?
Petter Gustad
gmane at gustad.com
Wed Aug 24 15:09:27 CDT 2005
Friedrich Dominicus <frido at q-software-solutions.de> writes:
> I'm wondering if anyone has used Webactions together with CL-SQL.
Yes. I think the combination Webactions/CLSQL/SLIME is an extremely
productive environment.
> You can take my question a bit more general if you like. How to use
> objects together with webactions? Is there a way to hand objects
> from one "component" to another?
I'm not sure exactly what you mean by a component. If you mean a
websession variable, you can pass any object in a websession variable.
(setf (websession-variable websession "somevar")
(make-instance 'some-clsql-view-class))
Then retrieve it using:
(websession-variable websession "somevar")
You can modify the slots of the instance, typically by data from a
form or similar and the use update-records-from-instance to write it
back to your database.
Petter
--
________________________________________________________________________
Petter Gustad 8'h2B | ~8'h2B http://www.gustad.com/petter
More information about the lispweb
mailing list