Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 29329 invoked from network); 9 Apr 2007 15:11:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2007 15:11:31 -0000 Received: (qmail 62214 invoked by uid 500); 9 Apr 2007 15:11:31 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 62157 invoked by uid 500); 9 Apr 2007 15:11:30 -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 62146 invoked by uid 99); 9 Apr 2007 15:11:30 -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 08:11:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 08:11:22 -0700 Received: from [192.168.0.156] (unknown [80.240.191.89]) by smtp.mxes.net (Postfix) with ESMTP id BE29C519A5 for ; Mon, 9 Apr 2007 11:11:00 -0400 (EDT) Message-ID: <461A57A8.7050900@apache.org> Date: Mon, 09 Apr 2007 17:11:36 +0200 From: Grzegorz Kossakowski User-Agent: Thunderbird 1.5.0.8 (X11/20060911) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: URLs in blocks? References: <3b3449e00704042213i236762f3ta2d7bdada05dbdbe@mail.gmail.com> <4615534D.3090702@apache.org> <3b3449e00704051301o4b72c6a5s7351e8eff7b95a28@mail.gmail.com> <3b3449e00704081632n403518efu8b9573ad30c7d965@mail.gmail.com> In-Reply-To: <3b3449e00704081632n403518efu8b9573ad30c7d965@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Lally Singh napisaƂ(a): > On 4/6/07, Alexander Klimetschek > wrote: > > Thanks! In either the block: or servlet schemes, what'd I use for a > connection name? my own block name? > > Also, where do I get a configured instance of CocoonSourceResolver? > > Thanks again for your help, > Sorry for delay, I've been little busy. I wonder if using servlet scheme isn't little overkill? Is this data going to be generated by Cocoon's pipeline or you want just to read some configuration file? I guess it will be just static file, then you should put it either in META-INF subdirectory or somewhere in COB-INF. If you put it in COB-INF then you can just omit scheme and reference resource by using relative to COB-INF directory path. I'm not sure how to read data from META-INF directories. If you use servlet scheme and want to reference resource in your block then you should not provide any name of connection. Getting CocoonSourceResolver is the same like getting instances of other Spring beans. I'm not sure about exact bean id, but will tell you as soon as I find out. -- Grzegorz Kossakowski --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org