need to open if the user selects the open button in new window 2004-07-06 - By Santhosh
Back I have a img tab in jsp onclick of the image it submits the form then
i have written this code
HSSFWorkbook wb=viewHelper.getExcel(); response.reset(); ServletOutputStream outs = response.getOutputStream(); response.setContentType("application/vnd.ms-excel");
response.addHeader("Pragma", "No-cache"); response.addHeader("Cache-control", "no-cache"); response.addDateHeader("Expires",1 ); wb.write(outs); outs.flush(); outs.close(); return;
It should ask me in which application to open please help me
=========================================================================== To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST". For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
|
|