> -----Original Message-----
> From: Carmona Perez, David [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2003 5:01 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Continuation and Java
>
>
> So, the only thing I would lose if I work with Java beans is
> the preservation of local variables values, wouldn't it?
sorry, could you be more specific pls?
You can do something like this:
function myFlowFunction() {
var myBean = new MyBean();
cocoon.sendPageAndWait( "pipeline", {bean : myBean} );
var age = cocoon.request.getParameter("age");
myBean.setAge(age);
...
}
At the end of this flow you can persist your bean (e.g. by using OJB).
HTH
--
Reinhard
>
>
> --------
> David
>
> -----Mensaje original-----
> De: Reinhard Poetz [mailto:[EMAIL PROTECTED]
> Enviado el: mi�rcoles, 05 de noviembre de 2003 16:35
> Para: [EMAIL PROTECTED]
> Asunto: RE: Continuation and Java
>
>
> > Is it advisable to store data in this way in a flow script?
>
> Yes, why not.
>
> > I suppose it isn�t saved into the continuation object, is it?
>
> A continuation object is "only" a pointer to a certain point
> within the script execution. If it is reactivated the script
> execution *continues* after the point you have exited it
> before. The execution stack is
> *shared* by all continuations.
>
> HTH
>
> --
> Reinhard
>
> P.S. Please don't send HTML mails to our maillists. Thank you.
>
>
>
>
> -----Original Message-----
> From: Carmona Perez, David [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2003 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: Continuation and Java
>
>
> Hi all,
>
> Continuations are implemented in Rhino JavaScript. Rhino can
> access data from Java objects. I have the following questions:
>
> Is it advisable to store data in this way in a flow script?
> I suppose it isn�t saved into the continuation object, is it?
>
>
> Thanks in advance for any hint.
> --------
> David
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]