You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by engp0510 <en...@nus.edu.sg> on 2003/08/13 18:07:50 UTC
Question about Notify all online user
Hi, all
How to implement notifying all online user when the record in database has been changed? I am using Servlet and JSP to build a small Supply-Chain system running on Tomcat with MySQL.
Thanks
Zhidao
Re: Question about Notify all online user
Posted by engp0510 <en...@nus.edu.sg>.
Ben!
Wah! Great! Could you give me more information about your implementation?
I am not clear with iFrame.
----- Original Message -----
From: "Ben Souther" <bs...@fwdco.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, August 14, 2003 12:32 AM
Subject: Re: Question about Notify all online user
We're doing something like this with a hidden frame (an iFrame) that
refreshes
it self every n seconds (using the Meta refresh tag). The frame just points
to a servlet which queries the database for new messages. If there is a new
message, the iframe uses javascript to fire off a pop up. message.
You're other option would be to use an applet that maintains a statefull
connection to your server. A applet list would be a better place to discuss
that approach though.
On Wednesday 13 August 2003 12:07 pm, engp0510 wrote:
> Hi, all
> How to implement notifying all online user when the record in database has
> been changed? I am using Servlet and JSP to build a small Supply-Chain
> system running on Tomcat with MySQL.
>
> Thanks
> Zhidao
--
Ben Souther
F.W. Davison & Company, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Question about Notify all online user
Posted by engp0510 <en...@nus.edu.sg>.
Ben!
Wah! Great! Could you give me more information about your implementation?
I am not clear with iFrame.
----- Original Message -----
From: "Ben Souther" <bs...@fwdco.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, August 14, 2003 12:32 AM
Subject: Re: Question about Notify all online user
We're doing something like this with a hidden frame (an iFrame) that
refreshes
it self every n seconds (using the Meta refresh tag). The frame just points
to a servlet which queries the database for new messages. If there is a new
message, the iframe uses javascript to fire off a pop up. message.
You're other option would be to use an applet that maintains a statefull
connection to your server. A applet list would be a better place to discuss
that approach though.
On Wednesday 13 August 2003 12:07 pm, engp0510 wrote:
> Hi, all
> How to implement notifying all online user when the record in database has
> been changed? I am using Servlet and JSP to build a small Supply-Chain
> system running on Tomcat with MySQL.
>
> Thanks
> Zhidao
--
Ben Souther
F.W. Davison & Company, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Question about Notify all online user
Posted by Ben Souther <bs...@fwdco.com>.
We're doing something like this with a hidden frame (an iFrame) that refreshes
it self every n seconds (using the Meta refresh tag). The frame just points
to a servlet which queries the database for new messages. If there is a new
message, the iframe uses javascript to fire off a pop up. message.
You're other option would be to use an applet that maintains a statefull
connection to your server. A applet list would be a better place to discuss
that approach though.
On Wednesday 13 August 2003 12:07 pm, engp0510 wrote:
> Hi, all
> How to implement notifying all online user when the record in database has
> been changed? I am using Servlet and JSP to build a small Supply-Chain
> system running on Tomcat with MySQL.
>
> Thanks
> Zhidao
--
Ben Souther
F.W. Davison & Company, Inc.
Re: Question about Notify all online user
Posted by Ben Souther <bs...@fwdco.com>.
We're doing something like this with a hidden frame (an iFrame) that refreshes
it self every n seconds (using the Meta refresh tag). The frame just points
to a servlet which queries the database for new messages. If there is a new
message, the iframe uses javascript to fire off a pop up. message.
You're other option would be to use an applet that maintains a statefull
connection to your server. A applet list would be a better place to discuss
that approach though.
On Wednesday 13 August 2003 12:07 pm, engp0510 wrote:
> Hi, all
> How to implement notifying all online user when the record in database has
> been changed? I am using Servlet and JSP to build a small Supply-Chain
> system running on Tomcat with MySQL.
>
> Thanks
> Zhidao
--
Ben Souther
F.W. Davison & Company, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org