Title: RE: outputing parameters in XSP

I am using Cocoon 2.1.1

As illustrated by the sample pipeline below, I have a navigate action which determines, among other things, the buttons to be displayed on the page.  The current page is passed into the navigate action, which is used to determine and return the buttons parameter to the pipeline indicating which buttons xsl to apply.

I now have a requirement that, depending on the result of a 'createService.xsp' (running <map:generate type="serverpages" src="" different buttons to those returned by the navigate action need to be displayed.  This could be achieved, I am hoping, by the XSP over writing the 'buttons' parameter returned by the navigate action by returning the 'buttons' parameter itself.

Any ideas?
   
<map:match pattern="*/*.xsp">
   <map:act type="xsp-action" src="">
      <map:parameter name="currPage" value="{2}.xsp"/>
       
      <map:generate type="serverpages" src="">
      <map:transform type="xslt" src="">
      <map:transform type="xslt" src="">
      <map:serialize/>
       
    </map:act>
     
    <map:generate type="serverpages" src="">
    <map:transform type="xslt" src="">
    <map:transform type="xslt" src="">
    <map:serialize/>

</map:match>

-----Original Message-----
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 07, 2003 1:08 PM
To: [EMAIL PROTECTED]
Subject: Re: outputing parameters in XSP


Gell, Ashley wrote:
> Sitemap parameters can be passed into an XSP but how do you set and pass
> out parameters to the pipeline from the XSP.  I have found the utility
> tag <xsp-util:get-sitemap-parameter/> but can't seem to find an
> equivalent <xsp-util:get-sitemap-parameter/> tag.
>
> I need to be able to set a parameter within an XSP and have it visible
> by the pipeline.

What you are using it for makes a big difference.  Can you give a basic
idea of your use case?  If you are trying to dynamically affect the
course of a pipeline after it begins (after your xsp starts executing)
you'll need to refactor your strategy as that is disallowed in Cocoon.

We'll also need to know what version of Cocoon you're using.

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

The information contained in or attached to this email is intended only for
the use of the individual or entity to which it is addressed. If you are not
the intended recipient, or a person responsible for delivering it to the
intended recipient, you are not authorised to and must not disclose, copy,
distribute, or retain this message or any part of it. It may contain
information which is confidential and/or covered by legal professional or
other privilege (or other rules or laws with similar effect in jurisdictions
outside England and Wales).

The views expressed in this email are not necessarily the views of Centrica
plc, or Centrica Telecommunications Limited, and their directors, officers
or employees make no representation or accept any liability for its accuracy
or completeness unless expressly stated to the contrary.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to