Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 50946 invoked from network); 9 Apr 2007 16:06:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2007 16:06:12 -0000 Received: (qmail 58841 invoked by uid 500); 9 Apr 2007 16:06:14 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 58762 invoked by uid 500); 9 Apr 2007 16:06:14 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 58750 invoked by uid 99); 9 Apr 2007 16:06:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 09:06:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.11.36] (HELO smtp005.mail.ukl.yahoo.com) (217.12.11.36) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Apr 2007 09:06:06 -0700 Received: (qmail 19488 invoked from network); 9 Apr 2007 16:05:44 -0000 Received: from unknown (HELO ?89.144.230.225?) (reinhard_poetz@89.144.230.225 with plain) by smtp005.mail.ukl.yahoo.com with SMTP; 9 Apr 2007 16:05:43 -0000 X-YMail-OSG: Qf2IzegVM1mvpY9N14zRpZSmKSnVv__BUFUsrIMZfq_XPL0eztITT3AqPJIOslKwu5YWG8nozSqCIyCGOwjTypLWrtwXxvmDiuWgBcUY.zP8rSq3 Message-ID: <461A6448.6080803@apache.org> Date: Mon, 09 Apr 2007 18:05:28 +0200 From: Reinhard Poetz User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Servlets, Sitemaps, and Spring in trunk References: <25335d770704081434r104f68cby7110a83702c45717@mail.gmail.com> In-Reply-To: <25335d770704081434r104f68cby7110a83702c45717@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Max Pfingsthorn wrote: > Hi everyone, > > I've been looking at trunk to find out how things work these days and > it looks great, but I am a bit confused. It seems like the blocks can > register their own servlet to handle requests, is that true? yes There is > a suspicious xml file in META-INF/cocoon/spring in each sample. But > how does spring, or is it avalon, know that this servlet should be > used at all? Through DispatcherServlet? The DispatcherServlets scans the Spring application context for all beans that are of type "Servlet" and looks for a proropety "path". If both conditions are fulfilled, the servlet is registered. > It doesn't seem to work right > now though, at least not if I use the cocoon-webapp. IIRC the Cocoon webapp hasn't been moved to use the servlet-service framework completly. > Is there an easy > way to make it work? I'm trying to do some json stuff, so a "detour" > through cocoon would not be so great. Do you want to provide your own servlet service that doesn't use Cocoon sitemaps? Have a look at the servlet-service-sample module which already contains a sample that uses a "non-sitemap" servlet. -- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc -------------------------------------------------------------------- ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de