This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
----- response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition","attachment;filename=\"" + date_num + "\""); ..... here date_num variable is for name of file in terms of date string.
Second, in explorer you go to Tools->Folder options->Data types->[.xls/.xlsx]->Advanced-> check "Open in same window" (Exact text may be different as i am on German Windows). This can also be set trough registry.