Hello,
I solved the problem getting database connection so that I created
Registrator java class which implements Serviceable interface. Then
the flowscript loads Registrator class by method cocoon.createObject()
in order to allow accessing Avalon services.
Now I need to solve another problem.
I am using CForms/flow-script. When the form is submited, I usually call
a methods in my database utility classes from flow-script to perform a
DB queries. For that I need to obtain a database connection from the
pool. I tried the method: Database.getConnection(connection-id), but
it returns
Servus Martin!
Martin Rusnak dijo:
Dear All,
I am using CForms/flow-script. When the form is submited, I usually call
a methods in my database utility classes from flow-script to perform a
DB queries. For that I need to obtain a database connection from the
pool. I tried the method:
Hi,
you can indeed use java in flowscript. Specify you doc as follows:
importClass(Packages.java.util.Iterator);
then:
var myIt = new Iterator();
var someval = myIt.getMethod();
hope this helps.
Andrew
On 23 Oct 2004, at 14:51, Antonio Gallardo wrote:
Servus Martin!
Martin Rusnak dijo:
Dear All,
I am using CForms/flow-script. When the form is submited, I usually call
a methods in my database utility classes from flow-script to perform a
DB queries. For that I need to obtain a database connection from the
pool. I tried the method: Database.getConnection(connection-id), but
it
Martin Rusnak wrote:
Dear All,
I am using CForms/flow-script. When the form is submited, I usually call
a methods in my database utility classes from flow-script to perform a
DB queries. For that I need to obtain a database connection from the
pool. I tried the method: