You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yves Vindevogel <yv...@implements.be> on 2005/04/25 21:32:23 UTC

Table with multiple rows in xsp:logic

Hi,

What I want to do is pretty basic.
I have a loop in my results to show them inside a table
Every four columns, I want to start a new row.

How can I do this ?

The code below shows what I try to do, but does not work.  (And it's 
not the == instead of the modulo)
I'm just trying stuff in there.



        				<table>
         					<tr>
         						<esql:row-results>
         							<xsp:logic>ct++ ;</xsp:logic>
         							
         							<td>
         								<a href="#">>
         									
         									<esql:get-string column="id"/>
         								</a>
         							</td>

								<xsp:logic>
									if (ct == 4)
									{
										<xsp:text disable-output-escaping="true">&lt;tr&gt;</xsp:text>
									
									} ;
								</xsp:logic>
     	    						</esql:row-results>
     	    					</tr>
     	    				</table>


Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements