This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Tables in JSP Report Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Tables in JSP Report" Watch "Tables in JSP Report" New topic

Tables in JSP Report

raj kothari

Joined: Nov 21, 2005
Posts: 24
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

Joined: Dec 11, 2004
Posts: 13410

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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62312

Moved to the HTML forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Tables in JSP Report