tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
Subject [OT] Server / Broswer interaction question
Date Fri, 01 Apr 2005 13:00:42 GMT

I've renamed your subject as [OT] because it's not specifically about

On Fri, Apr 01, 2005 at 08:47:59AM -0400, James Sherwood wrote:
: Is there a way to have tomcat monitor a port or socket for incomming events,
: then from those events, talk to a currently open broswer in javascript
: events?

This is not directly possible, based on the stateless notion of HTTP
requests: a browser hits a site, fetches data (some resource based on the
URL and other params), and disconnects.

I say "directly" because there's usually some indirect workaround.

Your best bet is to find some way for the data to be there when the browser
makes its request.  One such way would be to have a self-refreshing iframe
(or whatever) that keeps contacting the server.  That would be quite
chatty, however, so it may or may not be suitable for your situation.



software   --
tech news  --
code scan  --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message