spring mvc - Open or save the excel file attachment from the browser using ajax request in Ext.js -
i generating excel file in server side , writing outpuststream following response headers.
response.setcontenttype("application/vnd.ms-excel"); response.setheader("content-disposition","attachment;filename="+filename);
in client side : ajax call servlet shown :
ext.ajax.request({ url: 'generatereport', method: 'get', params: { 'start_date': sd.getvalue(), 'end_date':ed.getvalue() } });
browser shows following response headers :
my issue : open , save dialog prompt not opening.what may problem.please me resolve this.any appreciated.thanks.
try open new window appropriate url instead of ajax request.
Comments
Post a Comment