Automatic notification in JSP

Hi I am working with tomcat.

Mine is an intranet application. In my application if some one puts some query for otheruser i save this to database.

Now whenever the second user logs in if some querrires are put for him i can show that but my concern is if that user is already online and during that time if some message comes for him i want to show him notification that some one has posted message for you.

This is same as in MSN messanger or yahoo messagner when some logs in ...messanger shows u message ....like this way i want to do.

If any of you have some idea please let me know for that in detail.

Thanks

Taral Shah

(tarals@contechsoftware.com)

[709 byte] By [taral_shah] at [2007-9-26 3:35:43]
# 1
You can:1) refrech pages each X seconds (not too nice)2) you can have a small applet (phone) checking user's inbox and ringing when inbox has changedRegardsJan
pernica at 2007-6-29 12:06:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks pernica,

I also thought for both ideas and 1st wasnt possible cause it may happen some one is making some entry and page refreshes then his data is lost.

For second option I also thought previously and i found may be using applet/servlet communication and then trying for refreshing applet every 5 mins is possible but do u know how will i show alert message. By the above way i can show some link saying u got new message ...but i want some thing like big alert message or some thing like pop up...which says him u have this message.

If you have idea then let me know

Thanks

Taral Shah

taral_shah at 2007-6-29 12:06:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...