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. <input-modules> <component-instance name="request" class="org.apache.cocoon.components.modules.input.RequestParameterModule"/> ..... " 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 <[email protected]> wrote: > I did something similar for a client. We did it with a custom input module > so you can define a protocol on when the input is the key an the output the > value. > > Also I can't access to my laptop now but I have an example about accessing > to spring beans from flow script, probably the input module it's enough. > > Salu2 > > El 10/11/2012 18:41, "Francesco Chicchiriccò" <[email protected]> > escribió: > >> 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<String,String>. >> > >> > 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ò >> >> ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member >> http://people.apache.org/~ilgrosso/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
