I have this ajax call in my GSP:
$.ajax({
url: \'${request.contextPath + \'/Ticket/passAll\'}\',
type: \'POST\',
data: data,
success: functio
I guess the url property should be fixed as your quotes are colliding.
Try with:
$.ajax({
url: "${request.contextPath}/Ticket/passAll",
type: 'POST',
data: aoData,
dataType: 'text',
success: function(result) {
var uri = 'data:application/csv;charset=UTF-8,' + encodeURIComponent(result);
window.open(uri, 'tiketi.csv');
}
});