RE: Cocoon example implementation
"Justin Makeig" <[email protected]>
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
I've got the latest CVS version of Keel. I downloaded, and built the default build for Cocoon 2.1.3 into $KEEL_HOME/keel-build/deploy. However, when I run the nojms-cocoon target, Ant says that it can't find the $KEEL_HOME/keel-build/deploy/cocoon-2.1.3/build/webapp-minimal. Am I using the wrong version of Cocoon? When I change webapp-minimal to webapp (a valid Cocoon build directory), keel builds, but Tomcat gives the error: The requested resource (/keel/test.html) is not available. -Justin -- ThatOne Company http://www.thatone.com/ ________________________________ From: Michael Nash JGlobal.com [mailto:[email protected]] Sent: Tue 4/6/2004 1:11 PM To: user-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected] Cc: Justin Makeig Subject: Re: [Keel User] Cocoon example implementation 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