I am developing a Application using JSP , Servlets and MySQL as Database .
The FrontEnd is made of DOJO library JavaScript and JSP and it displays all the Elements Present in the Database Table .
One of our requirement is that whenever there is a change ( A New Entry that is added in the Table) , it should immediately reflect in the Front End .
This is not a Periodical refresh ,and it may happen at anytime like after 1 Hour 2 Hours or even after 5 Hours )
Please sugget what is the best approach to deal with this requirement ??
解决方案
Here are some links that shows demo of Ajax in jsp:
Hope this helps.