cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinhard_po...@gmx.net>
Subject RE: cinclude parameters - simple question
Date Sat, 14 Sep 2002 12:48:02 GMT
Jeff,

My first thought is writting an stylesheet in which you set your parameters:

<map:generate src="yourpage.xml"/>
<map:transform src="setparameters.xsl">
	<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:transform type="cinclude"/>
<map:serialize/>

In your stylesheet you get access to the parameters by setting global
parameters variables:

<xsl:param name="req-param-name"/>

--> <xsl:value-of select="$req-param-name"/>

Regards,
Reinhard

> -----Original Message-----
> From: jsexton@odshp.com [mailto:jsexton@odshp.com]
> Sent: Friday, September 13, 2002 7:46 PM
> To: cocoon-users@xml.apache.org
> Subject: cinclude parameters - simple question
>
>
>
> Sorry for what must be a really common question, but I couldn't find
> the answer, so here it is....
>
>
> How can I hand off parameters from the request to a cinclude'ed
> request?  For example
>
> <page xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>  <content>
>   <cinclude:include
> src="http://localhost:8080/myApps/myServlet?P1=456&amp;P2=<P2>"
> element="included"/>
>  </content>
> </page>
>
> Where the incoming URL has "?P2=123" on the end.  I simply want to
> pass off the parameter to the included servlet output.
>
> Thanks!
>
>
> ---
> Jeff Sexton
> ODS Health Plans
> jsexton@odshp.com
>
>
>
> ---------------------------------------------------------------------
> 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>
>


---------------------------------------------------------------------
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