I agree with Tony - Cocoon does not have good, representative sample(s) for a solid DB application.. not entirely its fault, of course, as Cocoon is not a DB application per se. Integration via Hibernate and Spring seems to be the way to go - there are lots of threads on this topic - but, again, although there are some starting tips and tricks (scattered through the Wiki and in various mailing list Q & A's ) there
is not one single, solid sample, that is well documented and clearly explained, to examine. If you ask for more, I guess most responses would just point you in the direction of the Cocoon/Hibernate/Spring Petstore code, available in the later versions of Cocoon. Maybe, one day, someone will have the expertise, time and motivation to write up a "everything you need to know about DB and Cocoon"... until then, you'll need to struggle through things on your own, like the rest of us :-( Derek. >>> [EMAIL PROTECTED] 2005/05/09 01:32:57 AM >>> Hi Chris, When I was starting a project that needed to hit databases and use CForms I picked apart the Petstore sample application. It shows how you can query databases from flow and push the results to and from cocoon forms. Its a bit heavy and overwhelming at first but if you take the time to step through the flowscript you can see how it all hangs together. The main drawback with it is that it is only intended as an example and suffers from a fair bit of 'concern mixing' as a result. The project I'm working on uses Oracle or Informix as its back end and goes OK but all the database connectivity is handled from within flow which isn't cool. I'm now poring over the Hibernate tutorials and the Cocoon/Hibernate/Spring Petstore example in order to handle database stuff correctly. The Petstore example will get you going in the shorter term, however. Just don't rely on the methods gleaned from it to be a robust solution. Hope this helps Tony Chris Maloney wrote: > Does anyone know a good tutorial on getting started with databases; > hopefully one that uses CForms? I have looked all over, and not found > one. I am under enormous time pressure, otherwise I probably wouldn't > ask this here. I've found several links to one on IBM Developer > Works, but I guess they've stopped giving out their content for free, > or something. The tutorial in the "Databases Block Samples" doesn't > use CForms, and also doesn't work, and has a lot of nasty > dependencies, etc. > > Any pointers would be appreciated. > > Chris > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
