cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Problem with layered tags and xsp:logic
Date Thu, 12 Oct 2000 21:47:36 GMT
Matthew Cordes <mcorde61@maine.edu> wrote:
>I'm having a bit of a problem doing the following:
>
>
><xsp:logic>
>    ....
>
>	<name:parentTag>
>
>		String values = request.getParameterValues( "someParams" );

That should be String [] values. It's an array.

>
>		for ( int x=0; x &lt; values.length; ++x )
>		{
>			<name:childTag>
>				<xsp:expr>values[x]</xsp:expr>
>			</name:childTag>
>		}
>
>	</name:parentTag>
>    ....
></xsp:logic>
>
>Thus, I want to create xml like:
>
>	<name:parentTag>
>		<name:childTag>value[1].toString()</name:childTag>
>		<name:childTag>value[2].toString()</name:childTag>
>	</name:parentTag>
>
>The error I get is that value is not defined.  And if I look at the
>generated source there is no mention of the for loop or the
>definition of value.

Try moving xsp:logic to inside the name:parentTag element.



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message