"Madni" <omermadni@gmail.com> wrote in news:1132727757.838559.6310
@g44g2000cwa.googlegroups.com:
> Hi all,
>
[quoted text clipped - 10 lines]
>
> Madni
A servlet gives data in response to a request from the client, it can't
send data on its own. There is no open connection, so where would it send
this data? Perhaps you could use a scheme like this:
1. client requests data
2. servlet starts calculations in a separate thread
3. servlet's original thread replies with a "please wait" page, which
includes scripting (javascript, vbscript, ...) that will reload the page
after n seconds
4. client reloads the page (ie, sends another request)
5. server checks if the separate thread is ready. If so, send the data.
If not, send the "please wait" page again, and we're back at 3.
Does that solve your problem?
Madni - 23 Nov 2005 12:40 GMT
Dear Zero,
Thanks a lot for your suggestion i am very hopefull this gonna solve
the problem ....thanks again .
zero - 23 Nov 2005 16:29 GMT
"Madni" <omermadni@gmail.com> wrote in news:1132749617.924212.10390
@g43g2000cwa.googlegroups.com:
> Dear Zero,
>
> Thanks a lot for your suggestion i am very hopefull this gonna solve
> the problem ....thanks again .
My pleasure :-)