Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 43670 invoked from network); 26 Aug 2008 20:13:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Aug 2008 20:13:22 -0000 Received: (qmail 94003 invoked by uid 500); 26 Aug 2008 20:13:18 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 93943 invoked by uid 500); 26 Aug 2008 20:13:18 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 93932 invoked by uid 99); 26 Aug 2008 20:13:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2008 13:13:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.8.194.137] (HELO smtp4.netcologne.de) (194.8.194.137) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2008 20:12:19 +0000 Received: from garbage (xdsl-213-196-225-4.netcologne.de [213.196.225.4]) by smtp4.netcologne.de (Postfix) with ESMTP id BB201DAD68 for ; Tue, 26 Aug 2008 22:12:47 +0200 (CEST) Received: from [192.168.13.66] by garbage with esmtp (Exim 4.63) (envelope-from ) id 1KY4uB-0004Ih-LM for users@cocoon.apache.org; Tue, 26 Aug 2008 22:12:47 +0200 Message-ID: <48B463AC.2040300@netcologne.de> Date: Tue, 26 Aug 2008 22:12:28 +0200 From: Martin Heiden User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: users@cocoon.apache.org References: <856316d70808261019g4b557f5fge2ecc23cd2bc58b@mail.gmail.com> In-Reply-To: <856316d70808261019g4b557f5fge2ecc23cd2bc58b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 192.168.13.66 X-SA-Exim-Mail-From: martin.heiden@netcologne.de X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on garbage.wg-netz.de X-Spam-Level: Subject: Re: Cocoon 3.0 skeleton project X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on garbage) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-104.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.1.7-deb Hi! Erasmo schrieb: > There's a way to create an empty cocoon 3.0 project? I'm pretty new with > cocoon i have tried 2.2 using the empty webapp project in the cocoon svn > and i was wondering if there's something similar in 3.0 i tried the > samples but the projects include a lot of things and sub projects and i > can't figure out how everything fits i just want to use a controller and > a sitemap "ala REST style". > I'd strongly recommend to stick with Cocoon 2.2. The 3.0 Version is in a very early alpha state (it's the first release...) and not recommended for production use. You can develop a REST-Style Webservice with Cocoon 2.2. Read about the StreamGenerator to get the XML-Message from a POST Request: http://cocoon.apache.org/2.1/userdocs/stream-generator.html Don't worry about the old Documentation. The new one simply isn't ready at this time, but nothing has changed for the user. I don't know if the StreamGenerator can handle application/atom+xml now. You may have to change the mime type in a Servlet Filter via RequestWrapper. After generating the XML-content to a SAX stream you need a custom transformer which handles the data and creates the XML-Response which is than serialized by XML Serializer. Hugo Cei seems to have worked towards an implementation of an atom service. Take a look at: http://wiki.apache.org/cocoon-data/attachments/GT2007Notes/attachments/AtomizedCocoon.pdf and: https://svn.apache.org/repos/asf/cocoon/whiteboard/gt07/ugocei-atomized/ There you'll find some ideas and code to extend. Much fun! Martin --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org