cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naquin, Beth" <Beth.Naq...@morpho.com>
Subject RE: request parameter problems
Date Wed, 21 Aug 2002 22:19:13 GMT
can you have map:generate inside map:aggregate like you do in pipeline 2?
Shouldn't both be map:part?

-----Original Message-----
From: amit@astronomica.as.arizona.edu
[mailto:amit@astronomica.as.arizona.edu]
Sent: Wednesday, August 21, 2002 3:14 PM
To: cocoon-users@xml.apache.org
Subject: request parameter problems



Hi,

  I got a problem regrading the request parameter handling in cocoon..
My problem is as follows :

<!-- Pipeline 1-->
<map:pipeline> 
	<map:match pattern="common/compile/**/*.spain">  
		<map:generate src="http://localhost:8080/xml/{1}/{2}.rio"/>
		<map:transform
src="http://localhost:8080/envs/common/compile.xsl" />
		<map:serialize type="xml"/>
	</map:match>

	<map:match pattern="envs/*/param.xsp*">
		<map:generate
src="http://localhost:8080/envs/{1}/param.xsp{2}" type="serverpages"/>
		<map:transform
src="http://localhost:8080/envs/{1}/param.xsl" />
		<map:serialize type="xml"/>
	</map:match>
</map:pipeline>

<!-- Pipeline 2-->
<map:pipeline>
       <map:match pattern="*/*/**/*.rio*">
      	 <map:aggregate element="site">
         	<map:part
src="http://localhost:8080/cocoon/common/compile/{3}/{4}.spain"/>
         	<map:generate
src="http://localhost:8080/cocoon/envs/{1}/param.xsp{5}"
type="serverpages"/><-------------
         </map:aggregate>
         <map:serialize type="xml"/>
       </map:match>
</map:pipeline>


if I have a url like 
http://localhost:8080/cocoon/env1/audios/polsani/spain/spainRio.rio?view=dou
ble&sn=3
then my request parameters should be passed to "params.xsp" in pipeline 1. 
Problem is "params.xsp" is not getting these request parameters.. 

In case I invoke 
http://localhost:8080/envs/env1/param.xsp?view=double&sn=3 my request 
parameters are passesed to params.xsp.

Can anyone tell me how to pass the request parameters to "params.xsp".

Thanks


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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