How to update elements without refreshing the page
Hi Guys, If you want to update page elements dynamically without refreshing a page check this out :
Sorry for making it as images as it was looking too messy if displayed as normal text unlike in eclipse :-)
Sorry for making it as images as it was looking too messy if displayed as normal text unlike in eclipse :-)
if(!request.getParameter("myVariable").equals("")){
save/ process your data
response.setContentType("text/html;charset=UTF-8");
response.getWriter().write("myUpdatedvalue :"+theUpdatedValue);
}
all you have to do is create a request object and use appropriate get or post and get the response.


