cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: sitemap.xmap
Date Tue, 16 Jan 2001 23:23:57 GMT
"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>

Use:

   <map:match pattern="*/*/*/*/report.html">
    <map:generate type="serverpages" src="docs/getPostcodeData.xsp">
     <parameter name="postcode" value="{1}{2} {3}{4}"/>
    </map:generate>
    <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

Mime
View raw message