Hell javaranch,i am stuch with one issue.This issue is regarding response from the
servlet
I have written a code to download .csv file with records from DB.
To download records i am uploading a .CSV file containing telephone number.
After downloading the .CSV file page is not getting refreshed.
Below is the code snippet i am using,where i am setting response content type as test/csv.
ServletOutputStream op = resp.getOutputStream();
// Set content type of output
resp.setContentType("text/csv");
resp.setHeader("Content-Disposition", "attachment; filename=\"test\"");
op.flush();
op.close();
Please help me to resolve this issue so that page will get refreshed after csv file download or after response.
Thanks-Arun