On Jan 17, 2005, at 10:26 AM, Brian Burridge wrote:

Sorry if this is a very basic question. I have a several months
experience with Cocoon, but I've only done XML pipeline work. I'm
wondering how Cocoon can be used, if you are going to be using business
objects from the DB, for example Hibernate. I have seen the Wiki on
integrating Hibernate (and that's not my question). My question is how
does cocoon work with Business Objects since Cocoon seems to be based on
xml.


Do you convert the business objects to XML first?

Yep. Trivially done in the sitemap + flowsrcipt:

In the sitemap:

        <match pattern="page">
                <generate src="module:flow-attr:bizObject" />

In the flowscript:

        cocoon.sendPage ("page", bizObject);

It seems like if you
don't, and you just create the business objects and use them via a JSP
page with JSTL or tags, then you are losing all the benefits of Cocoon.

:-)

HTH,
-ml-


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



Reply via email to