Unanswered: ExtJs 4 need to read Response Stream to create CSV file
Unanswered: ExtJs 4 need to read Response Stream to create CSV file
Hi
I have created an AJAX Request of Post Nature.
Servlet code accepts the Post request and processes it. doPost() method writes the csv File to the responseStream .
This response should have been handled by the browser but when it reaches the success function of AjaxRequest, I just find my csv text embedded in an object.
Following below is the code:
UI Side
Ext.Ajax.request({
ur;:'ExportCsvServlet',
method:'POST',
params:{"test":"testParam"},
success:function(response){
console.log('we are success')'
},
failure:function(response){
console.log('we are failure')'
}
});