function ajaxOnSubmit(url){
alert('am in ajaxon submit : '+url);
$.ajax({
type: 'GET',
url: url ,
cache: false,
dataType: 'html',
success:function(xml){displayAjaxResults(xml)},
error:function(err){displayAjaxError(err)}});
}
function displayAjaxResults(xml){
document.getElementById('employeeVisitorDetailReport').style.display='none';
alert("displayAjaxResults "+xml);
$('#employeeVisitorDetailReport').removeData().empty();
$('#employeeVisitorDetailReport').append(xml);
document.getElementById('employeeVisitorDetailReport').style.display='inline';
$.ajaxSetup({cache: false});
}
function displayAjaxError(error){
alert("displayAjaxError "+error+"***");
}
response.sendRedirect("http://"+host+"/vams/GUI/www/employees/employeeVisitorReportData.jsp");
Everytime it is going to servlet and getting the updated data and is shown in the JSP. For the first time the content shown in the JSP is perfect, but from the next time onwards the data is not getting updated even the data in database is updated. Still it is showing the old one. Can someone help me out....? Please let me know if u require any thing.