I am doing a very simple POC regarding Instant Messaging using Struts.
So I was able to do login and sending message. However, I am confused on how I can get the messages display to my POC if the other person is replying.
The idea that I am thinking is to use AJAX periodically call the Struts action.
Can you advise on what API i should use in AJAX to do this call?