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 [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL 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

Reply via email to