cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2] sitemap parameters
Date Wed, 09 May 2001 18:09:19 GMT


On Wed, 9 May 2001, Torsten Curdt wrote:

>
>   <map:match pattern="test.*">
>        <map:act set="myactions">
>          <parameter name="media" value="{1}"/>
>          <map:generate type="serverpages" src="page.xsp">
>             <parameter name="media"   value="{../media}"/>
>          </map:generate>
>        </map:act>
>    ...
>
> and within the XSP I tried to access the parameter via
>
>      String media = parameters.getParameters("media",null);
>
> But it's not there... How can I pass the parameter?

Sure, the matcher doesn't return values named "media". Try using {../1}
instead.

Giacomo


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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