我正在使用Ajax提交表单,我正在获取另一个jsp的响应。我想将另一个jsp重定向到新标签。
$.ajax({
data: $('#frmPrintReports').serialize(),
type: $('#frmPrintReports').attr('method'),
url: $('#frmPrintReports').attr('action'),
success: function(data, status, xhr) {
console.log("result : " + data);//here I get the another jsp data which I want to redirect to new tab
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("some error");
}
});