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: cinclude parameters - simple question
Date Mon, 16 Sep 2002 12:52:10 GMT
Reinhard Poetz wrote:

>Jeff,
>  
>

1)

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

2) Use XSP to create include URI

3) Use cocoon:/ URI (assuming including resource deployed in the Cocoon).

Vadim


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


Mime
View raw message