cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cedric Picard" <>
Subject RE: request parameters..
Date Fri, 01 Aug 2003 09:58:57 GMT
Hi Anoop,

You can use <map:parameter ...> as shown below, for the action,
generation or transformation.

       <map:match pattern="*.html">
         <map:act type="ensureLoggedIn">
           <map:parameter name="parameters" value="true" />
           <map:generate type="serverpages" src="documents/{xspFile}">
             <map:parameter name="parameters" value="true" />
           <map:transform src="stylesheets/{xslFile}">
             <map:parameter name="parameters" value="true" />
           <map:serialize type="html" />

Hope that helps,

-----Original Message-----
From: Anoop Aryal [] 
Sent: 01 August 2003 02:28
Subject: request parameters..

hi, new to cocoon. looking at a couple of books and the example sitemap.
but what i can't figure out for the life of me is how to get at the
request parameters that i get in a GET request (it could be POST as
well). and propagate it in the cocoon:// protocol.

i have something like this..

(i know some of these need to be resources.. but i need them public for
right now)

--------------- sitemap snippet --------------

<map:match type="wildcard" pattern="one.xml">
<map:generate type="customGeneratorTypeOne"/>

<map:match type="wildcard" pattern="two.xml">
<map:generate type="customGeneratorTypeTwo"/>

<map:match type="wildcard" pattern="combined.xml">
    <map:part src="cocoon://one.xml"/>
    <map:part src="cocoon://two.xml"/>
  <map:transform type="xslt" src="combined.xsl">
  <map:serialize type="xml"/>

--------------- end sitemap snippet --------------

now, when i pass combined two parameters as such:
i need those available to the corrseponding generators as parameters

any ideas?


To unsubscribe, e-mail:
For additional commands, e-mail:


This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message