cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cedric Picard" <C.Pic...@kainos.com>
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:pipeline>
       <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:generate>
           <map:transform src="stylesheets/{xslFile}">
             <map:parameter name="parameters" value="true" />
           </map:transform>
           <map:serialize type="html" />
         </map:act>
       </map:match>
     </map:pipeline>

Hope that helps,
Cedric

-----Original Message-----
From: Anoop Aryal [mailto:aaryal@foresightint.com] 
Sent: 01 August 2003 02:28
To: users@cocoon.apache.org
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>

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

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

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


now, when i pass combined two parameters as such:
http://whathaveyou:8080/cocoon/combined.xml?oneParam=1&twoParam=2
i need those available to the corrseponding generators as parameters

any ideas?

thanks,
anoop.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



--

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message