File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Variable Number of Table Rows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Variable Number of Table Rows" Watch "Variable Number of Table Rows" New topic

Variable Number of Table Rows

Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
Hi All,

My task is to search an Oracle database with SQL and display the search results based on what the user entered in certain fields - a simple search engine for our application.

The problem is: I won't know how many rows the the <table> tag will contain until the search is complete and the results are returned in an ArrayList.

I need to display one table row for each entry in the ArrayList.
The number of search results could be zero to n.
The number of columns to display will always be 12.
The first row displayed will be column headings.

Thanks You in Advance for Your Help,

[ May 26, 2004: Message edited by: Lou Pe ]
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

check out the logic tags

A good workman is known by his tools.
I agree. Here's the link:
subject: Variable Number of Table Rows
It's not a secret anymore!