cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Use request parameter selection in pipeline
Date Thu, 10 Jan 2002 14:47:53 GMT
> From: Maksimov, Aleksey [mailto:AlekseyMaksimov@spherion.com]
> 
> > Hi Aleksey,
> >
> > If I were to do what you suggest. How would the pipeline know
> > which request
> > parameter it is accessing, since in my different pipelines I may
have
> > different parameter names to select?
> 
> I tried that case this way first:
> 
>  <map:selector name="request"
> src="org.apache.cocoon.selection.RequestSelector">
>     <parameter-name>xsl</parameter-name>
>     <parameter-name>xslOne</parameter-name>
>  </map:selector>
> 
> but this doesn't work. So the only solution, I could think of, is have

Of course doesn't.


> multiple selectors like this:
> 
>  <map:selector name="request"
> src="org.apache.cocoon.selection.RequestSelector">
>     <parameter-name>xsl</parameter-name>
>  </map:selector>
>  <map:selector name="requestOne"
> src="org.apache.cocoon.selection.RequestSelector">
>     <parameter-name>xslOne</parameter-name>
>  </map:selector>

Try this one (it may be more useful for you):

<map:selector name="request"
src="org.apache.cocoon.selection.RequestSelector"/>

...

<map:select type="request">
  <map:parameter name="parameter-name" value="xsl"/>
  <map:when test="...">
  ... skipped a lot ...
  </map:otherwise>
</map:select>

Vadim


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message