Two Laptop Bag*
The moose likes HTML, CSS and JavaScript and the fly likes Table Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Table Question" Watch "Table Question" New topic
Author

Table Question

anirban dando
Greenhorn

Joined: May 12, 2005
Posts: 4
Hi-
I want to have a table with some of the coloumns having nested dynamic rows. Like say I have 3 coloumns and 2 rows and in one of the rows cell I want to have again 3 rows. How could I achevie it ? .. I am using JSP.. May be I need to use nested tables ??.. Do I need to create a table in the columns where I want to have dynamic number of rows ??.. Please help me .. thx

Maha
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Yup, sounds like nested tables is what you need.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
You can do the same thing by sticking three DIVs in your table cell. That will save you some code and tends to be the favored way of writing HTML. Nested tables are being used less because they're such a pain to write, manage, and debug. If you don't have to use them, don't.
anirban dando
Greenhorn

Joined: May 12, 2005
Posts: 4
Hi Garran-
Thanks a lot. It worked!!..
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
Awesome. Glad to hear it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Table Question
 
Similar Threads
Swing JCombobox and JTable issue
Colored Rows in Table
Query Preparation
PdfPTable
NX: Set JTable columns display in different sizes