cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Man <Martin....@seznam.cz>
Subject Re: generator parameter
Date Mon, 07 May 2001 11:11:17 GMT
On Mon, May 07, 2001 at 12:44:19PM +0200, Martin Man wrote:
> On Mon, May 07, 2001 at 11:27:04AM +0200, Torsten Curdt wrote:
> > Are generator parameters accessible from
> > within the xsp page?
> > 
> >    <map:match pattern="test.html">
> >     <map:act type="lang-select">
> >      <map:generate type="serverpages" src="test.xsp">
> >       <parameter name="lang" value="{lang}"/>
> >      </map:generate>
> >     </map:act>
> >     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
> >     <map:serialize type="html"/>
> >    </map:match>
> I was also once unsuccessfully trying to find where the parameters can be
> accessd from, I would like to use them for URL to params mapping
> 
> <map:match pattern="go/*/*">
> 
>   <map:generate type="serverpages" src="test.xsp">
>     <parameter name="one" value="{1}"/>
>     <parameter name="two" value="{2}"/>
>   </map:generate>
>   ...
> </map:match>
> 
> 
just have found at cocoon-users answer from giacomo :)

> How do I read them inside the XSP? They don't appear in the HTTP
> request parameters. Are there any other parameter objects available
> in XSPs? Which taglib should I use to access them?

Yes, the variable is called parameters (IIRC) and it is of type
org.apache.avalon.framework.paraameters.Parameters.

Giacomo


> > 
> > Or should I get the lang from the session directly?
> > --
> > Torsten
> > 
> 
> any explanations from designers of these components ???
> 
> thanx,
> martin
> 
> -- 
> -------------------------------------------------------------------------------
> "Only dead fish swims with a stream"
> gpg_key_available: http://globales.cz/~mman/martin.man.gpg
> gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

-- 
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

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


Mime
View raw message