• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tables in JSP Report

 
raj kothari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP Report which retrieves a huge data. If I put all records in one html table, the data displayed after the report is over and takes some time. I am using now html table tag for each row of report. I use
<table><tr>table data for each row etc..</tr></table>
In this case, the data starts displaying immediately and continues to load. It looks very fast from the user's angle. but is there any disadvantage internally doing this?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing that the browser holds off displaying the table until it knows it has the entire thing.

The only disadvantage I can see is that with separate tables for each row, you may have trouble keeping the columns lined up unless you're setting specific widths with CSS.

As far as the server side Java/JSP goes, it's all just text.
JSPs aren't aware of HTML or Javascript.
All of that is interpreted in the browser.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64724
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the HTML forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic