Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE011D649 for ; Sat, 10 Nov 2012 19:08:10 +0000 (UTC) Received: (qmail 56578 invoked by uid 500); 10 Nov 2012 19:08:10 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 56537 invoked by uid 500); 10 Nov 2012 19:08:10 -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 56530 invoked by uid 99); 10 Nov 2012 19:08:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 19:08:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mansour.alakeel@gmail.com designates 209.85.215.51 as permitted sender) Received: from [209.85.215.51] (HELO mail-la0-f51.google.com) (209.85.215.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 19:08:03 +0000 Received: by mail-la0-f51.google.com with SMTP id m15so3521132lah.24 for ; Sat, 10 Nov 2012 11:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=OzQkpgv2DY2X3pYKIQhdRfEj613veNnoSnujzuqA9NI=; b=gKFTUr0ZoaB4NZo/ULKc5ZPqmTW0sLOqomSgx3dPjLDK836ExO9tWIJiY6j93WSgay iiElorrORpUmmkC0ZL9zC2osCKto3FXNqCo5MU+lMJNMmHaCiiktyFJ7LuZ2ub8YAUPR mZ60/WKP8gAgYGsAj/Z4BS55e0EFsdWTKbjx2Rn+yHUOYpMuK4ACrMsxZ0RSIiN0acx+ 33poRdqLhW3DNdlREbOPvDJmqMKZc2KjW5BbOnauH3HzezQmrIubFfUezLiv5D6YWUWQ 3Z8+LnTOdtaWtN/HqrWxYQUEms25lZfyRC961c04Zss0EP2/Hs/w/XcwSzAZmki6n+7i zviw== MIME-Version: 1.0 Received: by 10.152.113.225 with SMTP id jb1mr3460258lab.23.1352574462288; Sat, 10 Nov 2012 11:07:42 -0800 (PST) Received: by 10.112.127.168 with HTTP; Sat, 10 Nov 2012 11:07:42 -0800 (PST) In-Reply-To: References: <509E91BD.6010300@apache.org> Date: Sat, 10 Nov 2012 14:07:42 -0500 Message-ID: Subject: Re: accessing a spring bean methods from sitemap From: Mansour Al Akeel To: users@cocoon.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Javier, thank you. The module I am going to implement is to be used by one block only, and would love to be able to declare it in the sitemap.xmap. I haven't implemented input modules before, but reading this: http://cocoon.apache.org/2.1/userdocs/concepts/modules.html "Step 1: Making a new module known to Apache Cocoon Like other core components of Apache Cocoon, modules are declared in cocoon.xconf. There are already too many to list here. ..... " since I am developing with maven and jetty, and doing it in on block, I like to declare this new input module in the sitemap.xmap or in the same block (jar). Is there a way to do this ?? On Sat, Nov 10, 2012 at 1:09 PM, Javier Puerto wrote: > I did something similar for a client. We did it with a custom input modul= e > so you can define a protocol on when the input is the key an the output t= he > value. > > Also I can't access to my laptop now but I have an example about accessin= g > to spring beans from flow script, probably the input module it's enough. > > Salu2 > > El 10/11/2012 18:41, "Francesco Chicchiricc=F2" > escribi=F3: > >> On 10/11/2012 18:38, Mansour Al Akeel wrote: >> > I need to link documents through some identification. For example, >> > assuming that I have: >> > >> > articles/my-first-article.xml >> > articles/second-one.xml >> > articles/hello-world-article.xml >> > >> > books/book1.xml which has references to artice-1 and article-3 >> > identified by an id of the form: A001 >> > >> > I need to create a hashtable linking both so that I pass query param >> > by ID or by name. The idea I have is to initialize spring bean that >> > will extract the data from these files, >> > and construct a Map. >> > >> > My question is how can I access this HashTable from sitemap ?? >> > >> > I am using C2.2. >> >> Hi, >> I don't think there is any direct way to access an Hashtable from the >> sitemap: maybe the only chance is to get to it through flowscript... >> >> Don't have idea of how to access a Spring bean from flowscript, >> though... any C2.2. expert around? >> >> Regards. >> >> -- >> Francesco Chicchiricc=F2 >> >> ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member >> http://people.apache.org/~ilgrosso/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org