I have this ajax call in my GSP:
$.ajax({
url: \'${request.contextPath + \'/Ticket/passAll\'}\',
type: \'POST\',
data: data,
success: functio
As far as I know, it's not possible to trigger file-downloads via AJAX. Instead you may do something like this (e.g. with jQuery):
function downloadComplete(){ hideSpinner();}
function downloadStart(){ showSpinner();}
function download(){
downloadStart()
var urlParams = data // or e.g. $(form).serialize()
var downloadUrl = "${request.contextPath}/Ticket/passAll?" + urlParams
$("#download-iframe").remove()
$('
You may have problems because it's a GET-request: "security" or too many arguments. But in normal it should be no problem.