Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Dynamic table generation in jsp

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am generating a scrollable dynamic table by making a few selections in one listbox . Here whenever , the row count exceeds 9 , unnecessary space is added with each row and the table goes out of control .This problem is with IE 6.0 alone whereas it works fine with IE 5.0 . If anybody has faced a similar problem and found a solution to it ,please do let me know .
 
Sheriff
Posts: 67399
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really a JSP question. More client-side formatting, so I'm shuffling this off to HTML/Javascript.
bear
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you show the generated table html so I can see what is happening with the code that might be causing it
 
Soumya Sharma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
This is the generated HTML code of the table which has the problem. In this , when I remove the DIV tag , the application works fine Since I require the table to be scrollable, I need the DIV tag.
Also, please let me know how to attach a view of the screen( if that is of any help to you)?
Regards
Soumya.
<Table border="0" cellspacing="0" align="center" width="400">
<tr><Td width="100%">
<!--START OF THE MAIN TABLE INFORMATION-->
<table border="1" bordercolor = black cellspacing="0" align="CENTER" width="100%" >
<!--START OF THE FIRST ROW HEADINGS-->
<tr height="13" class="TableBody">
<td width="57%" align="center"
bgcolor="#57571E" nowrap >
<font color="white">Attribute Name</font>
</td>
<td width="13%" align="center"
bgcolor="#57571E"><font color="white"> Orderby</font>
</td>
<td width="13%" align="center"
bgcolor="#57571E"><font color="white">SNo</font>
</td>
<td width="15%" align="center"
bgcolor="#57571E"><font color="white"></font>
</td>
</tr>
<tr>
<td colspan="4" width="100%">
<!--START OF THE DATA TABLE-->
<div style="width: 100%; height: 117px; overflow: auto;" >
<TABLE ID="Table_QryId" border="1"
bordercolor=black cellspacing="0"
align="CENTER" width="100%">
<TBODY ID="oTBody">
</TBODY>
</Table>
</td>
</tr>
<!--START OF THE FIRST ROW BUTTON INFORMATIONS-->
</table>
</td>
</tr>
</table>
 
We can walk to school together. And we can both read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic