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 Wed, 17 Jan 2001 21:40:50 GMT
Berin Loritsch wrote:
> 
> 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.

Oh, now I've got it :) Thanks Berin.

Giacomo

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

Mime
View raw message