You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Markus Heussen <he...@rheinland-online.com> on 2003/06/26 22:45:15 UTC

Using sitemap action parameters in an xsp action

Hi all,

I need to write my own action and will use xsp for it. how can I use the
parameters that were set within the sitemap? For example:


My sitemap:

<map:match pattern="test">
	<map:act src="xsp/test.act" type="serverpages">
		<map:parameter name="testparameter" value="testvalue"/>
	</map:act>
</map:match>


My xsp page:

<xsp:page version="1.0" language="java"
	xmlns:xsp="http://apache.org/xsp"
	xmlns:xsp-session="http://apache.org/xsp/session/2.0" create-session="true"
	xmlns:xsp-request="http://apache.org/xsp/request/2.0"
	xmlns:xsp-action="http://apache.org/cocoon/action/1.0">

	<page>
		<xsp-action:set-success/>
		<xsp-session:set-attribute name="test">
			** HERE I NEED THE VALUE OF "testparameter" SET WITHIN THE SITEMAP **
		</xsp-session:set-attribute>
	</matrix:sendmail>
</xsp:page>


Can somebody give me a tip?

Thanx, Markus


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