I have a Java Servlet as controller and html pages as Views. In the application I have two login types. 1) Admin 2) Operator.
When Operator sends some request, if Admin is logged in, it needs to send the message to Admin.
I am able to post the message to Servlet. But from Servlet (Server), how I can send a message to Admin (ie a client). While session is requested, do we need to store some where and use that to send message?
Please help.
use
response.getWriter().println("ABC");in servlet to write output to client