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 : enter image description here

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -