Garvin Riensche wrote:
Hi there,

I started looking at cocoons database support and figured out how to connect
cocoon 2.1-m1 to a postgresql 7.3 database and how data can be read out of
the database. But i didn't understand yet how i can store data. Let's
consider a simple example where i have a textfield and want to store its
input in my database. How can that be done?

You have some ready-made options:
1) the Database Actions (I'd suggest using the "Modular" database actions as they are in more current deveolpement. Modular refers to their use of "InputModules").
2) SQLTransformer
3) esql
4) Object-relational blocks (don't we have this now? someone?)


Of these three, I'd suggest _not_ using the third for data insert/update because it will tend to lead to mixed concerns.

Another good option is to use flow and create your database logic in helper classes called from flow. This is a less documented but is probably a major wave of the future.

Geoff


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to