cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaNet Consultancy <beya...@ntlworld.com>
Subject Re: XSP and sitemap parameters
Date Wed, 21 Apr 2004 13:30:03 GMT
try,

1. xsp:
<xsp:page language="java"
	xmlns:xsp="http://apache.org/xsp"
	xmlns:util="http://apache.org/xsp/util/2.0"
	>

<page>
	<xsp:logic>
		int newUser = (int)<util:get-sitemap-parameter 
name="newUser"/>.length();

	</xsp:logic>
</page>
</xsp:page>

2. Sitemap:

<map:generate type="serverpages" src="xsp/register_newUser.xsp">
	<map:parameter name="newUser" value="1"/>
</map:generate>

Peter
On 21 Apr 2004, at 14:20, Carmona Perez, David wrote:

> Hi,
>  
> Does anybody know how to pass sitemap parameters to an XSP page?
> Can I do?
>  
>     <map:generate type='xsp'>
>         <map:parameter name='my-param' value='something'/>
>     </map:generate>
>  
> How do I retrieve this parameter from the XSP code?
>  
> Thanks for any answer.
>
> *************************************************************
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> *************************************************************
>

Mime
View raw message