Re: Getting database connection in flow script

2004-10-28 Thread Martin Rusnak
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.

Re: Getting database connection in flow script

2004-10-23 Thread Martin Rusnak
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

Re: Getting database connection in flow script

2004-10-23 Thread Antonio Gallardo
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:

Re: Getting database connection in flow script

2004-10-23 Thread beyaNet
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:

Getting database connection in flow script

2004-10-22 Thread Martin Rusnak
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

Re: Getting database connection in flow script

2004-10-22 Thread Tony Collen
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: