aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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 Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 142
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Variable Number of Table Rows
Similar Threads
Tables in servlets/JSP(Urgent !!)
Size of the arraylist different after deleting the record?
Table will not refresh?
Adding data to a JTable at runtime...
Display data using Structs Tag