Re: Cocoon example implementation

"Michael Nash JGlobal.com" <[email protected]>
Newsgroups gmane.comp.java.keel.user
Organization JGlobal
Message-ID <20040406161155.26f17c8f@jglobal>
Justin:

> Is there a "Hello World" example of a Keel application that uses Cocoon? 

Yes, there is. If you build a deployment of Keel with cocoon, e.g. "nojms-cocoon" for example, all of the "standard" Keel models will immediately be available, just as they are from Struts or any of the other UIs that Keel is integrated with.

The simplest example is the "Test" model. Once you have nojms-cocoon built, you can issue a URL like this: 

http://localhost/cocoon/keel/test.html

If you examine the sitemap.xmap in clnt-cocoon, you'll see that this maps to an Action set. The Model executes, then it's ModelResponse is turned into XML and stored in the session. The session generator is then used in Cocoon to extract the XML and pass it to the pipeline, where it is handled just like any other XML from Cocoon's POV. E.g. Cocoon is "unaware" of Keel, so to speak, and Model classes are "unaware" that they are being used with Cocoon.

> I'm more inclined to use XML/XSLT than JSP for my UI, but I'm not sure what I need to do to configure Cocoon or how XML will be passed and intercepted within a pipeline(s). Any help would be much appreciated.

I can attest that this works very well, as it's my UI technique of choice for applications I build with Keel. I'd be happy to offer any help I can as you explore.

Mike



-- 
Michael Nash

JGlobal Ltd 
Next-Generation Web Application Development and Open Source Support
http://www.jglobal.com

Bahamas Commerce and Trade
Offshore eCommerce Hosting and Business Services
http://www.bahamascommerce.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.