cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Delort" <>
Subject [flowscript] importclass ?
Date Fri, 18 Jun 2004 13:56:32 GMT
>Note that you haven't added the user to the page (the viewdata
>in your script, so there is nothing to be displayed from the newUser

Ok, but aren't we able to create objects whitout displaying them ?
(in my case a java class which will insert data in a database )

>I suppose main() works, although I would avoid using 'main' as name to avoid
>conflicts with assumptions elsewhere.

Yep, it was just a snippet, but I also changed it.

and by the way, it still does not work :(

I did not find a sample doing this kind of thing : calling an custom java class from the flowscript
with importClass ou importPackage.
If anyone saw one ......


here is a copy of my latest try thanks to Helma :

function loginf()
     var form = new Form("forms/login.xml");
     var model = form.getModel();

     var insert  = newUser.setName(, model.password); // (a)
     var viewData = {user: newUser};
     cocoon.sendPage("confirm.jx",viewData);  // this page is never displayed if (a) and (b)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message