cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: Customization
Date Wed, 28 May 2003 14:08:38 GMT
hi fernando,

assuming the snippet is from your actual sitemap; put that <map:parameter>
inside the <map:generate> ;-)


> -----Urspr√ľngliche Nachricht-----
> Von: cocoon-dev-return-42945-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-dev-return-42945-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Mato Mira, Fernando
> Gesendet: Mittwoch, 28. Mai 2003 15:38
> An: 'cocoon-dev@xml.apache.org'
> Betreff: RE: Customization
>
>
> I am trying to set a session variable to the value of a match
> variable (the
> customization name)
> and I am finding some difficulties:
>
> 1. There's no way to set a session variable from the sitemap.
>
> So I use XSP instead of a raw XHTML to set the variable there. I now
> need to pass a parameter to the XSP. So I do this:
>
>       <map:match pattern="*/login">
>         <map:parameter name="customization" value="{1}"/>
>         <map:generate type="serverpages" src="cocoon:/{1}/login.xsp"/>
>         <map:serialize type="html"/>
>       </map:match>
>
> I get:
>
> Error while evaluating '{1}': not so many levels
>
> Thanks


Mime
View raw message