I have found this one:
http://www.phptr.com/articles/article.asp?p=30946&seqNum=9

I still looking for a good solution - the usage of the forEach doesnpt
seem to be a good solution because I need to include a lot of
scriptlet in the JSP page... But I“m just studying here, I have no
complete oppinion for now.

thanks for the tip,

   Felpe Gaścho



On Sat, 29 Jan 2005 15:57:19 -0500, Rahul P Akolkar <[EMAIL PROTECTED]> wrote:
> > The the tag lib will receive two parameters: the list off skills and
> > the number of columns.
> 
> <snip>
> 
> > Can I pass a collection, a list, to a tag lib? how?
> 
> The <c:forEach> tag [JSTL core] will allow you to iterate over items in a
> collection, you may add the <tr> and <td> elements appropriately before
> and after each item [the varStatus attribute of the <c:forEach> tag will
> allow you to take care of tracking the item count for the number of
> columns bit and the special case for the last item]. You can also do the
> same in a tag impl and create your own JSP tag.
> 
> There are some HTML table generating tags already out there, so you might
> want to look at what those offer first.
> 
> -Rahul
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to