I'm not a Java programmer.
On 26 Apr 2005, at 09:17, Nathaniel Alfred wrote:
Don't try to fake tags. The beauty of XSP is that it guarantees wellformed output (if there are no exceptions thrown).Met vriendelijke groeten,
Instead store the query result upfront in a List and then use a double nested loop:
<xsp:logic>
for( int outer = 0; outer < idList.length(); outer += 4 ) {
<tr>
<xsp:logic>
for( int inner = 0; inner < 4; inner++ ) {
int index = outer+inner;
String id = index < idList.length() ? (String)idList.get(index) : "&160;";
<td>
<xsp:expr>id</xsp:expr>
</td>
}
</xsp:logic>
</tr>
}
HTH, Alfred.
-----Original Message-----
From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
Sent: Montag, 25. April 2005 21:32
To: [email protected]
Subject: 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.
>
>
>
>ct++ ;>
>
a >
esql:get-string />
>
>
>
if (ct == 4)
{
xsp:text >
} ;
>
>
>
>
Met vriendelijke groeten,
Bien à vous,
Kind regards,
Yves Vindevogel
Implements
<x-tad-smaller>This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender’s company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender’s company. </x-tad-smaller>
Bien à vous,
Kind regards,
Yves Vindevogel
Implements
<<inline: Pasted Graphic 2.tiff>>
Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91
Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Web: http://www.implements.be
<x-tad-smaller>
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi.</x-tad-smaller>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
