File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Tables in JSP Report" Watch "Tables in JSP Report" New topic
Author

Tables in JSP Report

raj kothari
Greenhorn

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
Sheriff

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
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tables in JSP Report