> can u suggest me a logic that loads the page once and makes changes in
> the same table continiously?
> IMP:: i cant load all all the contents before displaying the page
> because it is a time consuming job to get the details for the string..
> so once the page is displayed..i need to update the table accordingly
> and the process must stop only after all the tables are filled
What you want isn't possible in a single page using servlets with plain
HTML. There are a number of solutions depending on your requirements:
1. Use JavaScript and DHTML. When you write the table, give each cell
an ID attribute, and then to fill in data you can write out JavaScript
code to change the innerHTML property of each table cell. The advantage
is that from a simple UI standpoint, this looks the best. The
disadvantages are that JavaScript must be enabled for your page to work
at all, and that the resulting data can't be easily saved and used
elsewhere (because the page source will consist of long strings of
JavaScript code rather than simple data).
2. Use a Refresh header to cause the page to regularly refresh itself.
Do the background processing in a new thread, and have your servlet
write the most current results every time is gets a request. The
browser will then periodically update the results from the server. Once
the processing is done, you can simply not send the Refresh header to
stop the automatic refreshing. The advantage here is that it will work
almost anywhere; but it will look sort of jumpy.

Signature
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
brijesh - 08 Apr 2004 12:43 GMT
thank you for your suggestions
i just developed the code without using any DHTML or applets
i just made use of session objects that save the data on the first
instance when the page is loaded
the session objects get cleared once all the data is loaded
hope you can use the same too..
bye
take care
Chris Smith <cdsmith@twu.net> wrote in message >
> 1. Use JavaScript and DHTML. When you write the table, give each cell
> an ID attribute, and then to fill in data you can write out JavaScript
[quoted text clipped - 12 lines]
> stop the automatic refreshing. The advantage here is that it will work
> almost anywhere; but it will look sort of jumpy.