In my strut2 base web application I have generate xls on server and send back to user to save with following code
outputStream = response.getOutputStream();
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition","attachment; filename=sampleName.xls");
when this response goes to client browser it open as download popup but i want it open as save dialog so that user can able to save it. is it possible. if yes how ?
The answer is: There is no solution for the requirements given (solution must be implemented client side – configuration change in mime handling on client required). PS: Someone updating my desktop (in a company) to disable preview before the option to save would greatly annoy me.