Difference between refreshing a page in ajax and servlet
Joined: Sep 10, 2009
Hi Friends, we can refresh a page with servlet and ajax. what is the difference between this. why ajax is best
Joined: Feb 07, 2007
This is a choice which you need to make based on your requirement.
For instance ,say you have section in a page which needs to be updated regularly or something which the user doesn't need to proceed further, you can go for AJAX (which sends a request to the server and fetches XML or HTML fragment etc., ) . So here we avoid a page refresh scenario, and the user doesn't have to wait until the server is done.
There are a lot of tutorials available which will help you understand better.