IntelliJ Java IDE
The moose likes Struts and the fly likes Variable Number of Table Rows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Variable Number of Table Rows" Watch "Variable Number of Table Rows" New topic
Author

Variable Number of Table Rows

Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 105
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,

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

Joined: Feb 05, 2003
Posts: 4695

check out the logic tags


A good workman is known by his tools.
 
 
subject: Variable Number of Table Rows
 
Threads others viewed
Adding data to a JTable at runtime...
Table will not refresh?
Tables in servlets/JSP(Urgent !!)
Display data using Structs Tag
Size of the arraylist different after deleting the record?
MyEclipse, The Clear Choice