cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: sitemap.xmap
Date Wed, 17 Jan 2001 19:35:35 GMT
Giacomo Pati wrote:

> Paul Russell wrote:
> 
> 
>> * Giacomo Pati (giacomo@apache.org) wrote :
> 
>> 
>>> "Morrison, John" wrote:
> 
>>> 
>>>> How do I can I use wildcard matching in the path and pass the results to
an
> 
>>>> xsp page as a parameter?
> 
>>>> 
> 
>>>> eg:
> 
>>>> 
> 
>>>>    <map:match pattern="*/*/*/*/report.html">
>>>>     <map:generate  type="serverpages"
> 
>>>> src="docs/getPostcodeData.xsp?postcode='{1}{2} {3}{4}'"/>
>>>>     <map:transform src="stylesheets/html/report.xsl"/>
>>>>     <map:serialize/>
>>>>    </map:match>
>>> 
>>> The parameters are accessible in your xsp page as
> 
>>> 
> 
>>>       org.apache.avalon.Parameters parameters;
> 
>>> 
> 
>>> Giacomo
> 
>> 
>> Should this be available from the util taglib, so that people don't
> 
>> become dependent on how Cocoon2 does things?
> 
> 
> 
> I've lost you here.

I think he is saying add couple of commands to the util taglib:

<util:get-parameter name="postcode"/>
<util:set-parameter name="postcode">levelone schemetwo</util:set-parameter>

To pull the parameters set in the sitemap.


Mime
View raw message