Antonio Gallardo wrote:

Joose Vettenranta dijo:


When creating java-class that can be called from inside flow, does it
have to be compiled against some cocoon class, or can be separed? How
can I get information from request, or does that have to been wrapped
through flow? What I like to do, is to make an action like class, which
would take input as parameters and take input from request. Although,
flow has cocoon.get.request() stuff, so that could be used as a
wrapper.


You should probably use the the cocoon.createObject() method, which will treat your object as if it were an Avalon component. Then, if your object implements certain interfaces (e.g. SitemapModelComponent?) it will have certain methods called to pass it stuff, such as the ObjectModel, which will enable it to get at the Java Request object. I would caution against using the cocoon object within Java, it just doens't make sense.

HTH.

Upayavira

Yep. You can pass it as a parameter from Flow.


And if I want to save data to database, should I use already existing
class mod-db-insert or create one of my own, if I have to create my
own, how can I plug in to cocoon's resource pool to get connections?



Here you can use the OJB block for DB stuff.


Best Regards,

Antonio Gallardo



---------------------------------------------------------------------
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]



Reply via email to