-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:SERVLET-INTEREST@JAVA.SUN.COM]On Behalf Of Gang Zhang
Sent: Tuesday, September 16, 2003 2:10 PM
To: SERVLET-INTEREST@JAVA.SUN.COM
Subject: Re: Well to help all your bored servlet developers...how about break one big table to several small tables with the same amount of collums? You can hide the outer border so the user will think that is one table.___________________________________________________________________________ To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff SERVLET-INTEREST".----- Original Message -----From: Peter VertesSent: Tuesday, September 16, 2003 12:36 PMSubject: Re: Well to help all your bored servlet developers...On Tue, 2003-09-16 at 12:35, Ross Rankin wrote:J
I need some help. I have a servlet that generates about 150 items and creates an HTML table. It takes about 45 - 60 seconds to run.
First, I would like to create pages with 20 - 30 items per page. I through of a way to do this with JavaScript and DIV tags but we know why that isn't the best solution for multi-browser support and doesn't help with the issue below.
Second, I would like to provide the illusion of speed where as soon as the servlet is done with the first 20 results, throw up the HTML and let the process keep going with the other 130 while the users looks at the first 20.
I don't think you can do that. See, the HTML engine in your browser will only start rendering the table on the screen unless it encounters the </table> tag. I could be wrong but I really don't think there is a way to start displaying a table without having all the table elements and a closing tag. I would recommend either getting all the elements for the table in advance in a different thread while the user is busy doing something else if this is possible. Then when the user requests the table all you have to do is just construct your table with the elements that you have already prefetched.
-Pete
___________________________________________________________________________ To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff SERVLET-INTEREST".
-- perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
DISCLAIMER:
The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.(A)
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html