Thanks a lot. I think that will be the way to go then. It's a pity that
there is no way to implement pushing data to the browser from the server.
Some event-driven model would be very handy.


Jozef Chocholacek wrote:

> Ronald Wildenberg wrote:
>
> > ...
> > What I need is a way to push the response to the browser. I
> > would like the server to take the initiative in updating the browser
> > window, not the user. Is this possible in any way?
>
>   HTTP is request/response based protocol so AFAIK server has no
>
> possibility to initiate the connection to the browser. So in the
>
> initial response you must send some code saying browser to "refresh"
>
> the connection after a while. When browser "reloads" the page, you
>
> must check if the apropriate JMS answer (from remote appliaction) has
>
> arrived and send it to the browser, otherwise send the "refresh"
>
> response again.
>
>    Tip:
>         Look at HTML Meta tag <META HTTP-EQUIV="Refresh" Content="5;
> URL=http://some.server.com/some/path/to/servlet";> - in the "Content"
> field the number before ";" is number of seconds to wait before reload,
> the URL is URL to reload.
>
>    It is also good to show the user some text (or picture) like "Wait
> please...".
>
>    Regards,
>
> J.Ch.
> --
> Ing. Jozef Chocholacek                  Qbizm Technologies, Inc.
> Chief Project Analyst                   ... the art of internet.
> ________________________________________________________________
> Kralovopolska 139                          tel: +420 5 4124 2414
> 601 12 Brno, CZ      http://www.qbizm.com  fax: +420 5 4121 2696
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> 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

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

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

Reply via email to