You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nadia BrĂ¼nning <sl...@gmx.de> on 2003/11/27 13:45:32 UTC
create new session attribute in xsp
hi guys,
i habe the following problem:
i have a sitemape:
<map:match pattern="bookmark*">
<map:generate src="logic/bookmark.xsp" type="serverpages"/>
<map:transform src="stylesheets/bookmark.xsl" type="xslt">
</map:transform>
<map:serialize type="html"/>
</map:match>
in the bookmark xsp i create a new session attribute
<xsp-request:set-attribute name="fruit">Apple</xsp-request:set-attribute> as
an example
how can i access this attribute in:
<map:match pattern="confirm*">
<map:generate src="logic/confirm.xml"/>
<map:transform src="stylesheets/login.xsl"/>
<map:serialize/>
</map:match>
is there a way to catch this attribute in the sitemap ?
thanx a lot
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: create new session attribute in xsp
Posted by Guido Casper <gc...@s-und-n.de>.
Nadia BrĂ¼nning wrote:
> hi guys,
> i habe the following problem:
>
> i have a sitemape:
> <map:match pattern="bookmark*">
> <map:generate src="logic/bookmark.xsp" type="serverpages"/>
> <map:transform src="stylesheets/bookmark.xsl" type="xslt">
> </map:transform>
> <map:serialize type="html"/>
> </map:match>
>
> in the bookmark xsp i create a new session attribute
> <xsp-request:set-attribute
> name="fruit">Apple</xsp-request:set-attribute> as an example
>
> how can i access this attribute in:
>
> <map:match pattern="confirm*">
> <map:generate src="logic/confirm.xml"/>
> <map:transform src="stylesheets/login.xsl"/>
> <map:serialize/>
> </map:match>
Something like:
<map:match pattern="confirm*">
<map:generate src="logic/confirm.xml"/>
<map:transform src="stylesheets/login.xsl">
<map:parameter name="fruit" value="{session-attr:fruit}"/>
</map:transform>
<map:serialize/>
</map:match>
Guido
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org