• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with download manager in IE browser.

 
vijay akni kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to display excel sheet values.

iam working on struts frame work.

the jsp page calls the action method

code:

input type="submit" tabindex="2" value="Registration.xls" ick="set('createMemberExcel');"/>



the action class contain method

public ActionForward createMemberExcel(ActionMapping m, ActionForm f, .........ponse) throws Exception{

{
retrieving data from databse

setting it to stream like this

byte[] blobdata1 = wb1.getBytes();
response.setContentType("application/vnd.ms-excel: xls, xlb: Microsoft Excel Document");
response.addHeader("Content-Disposition", "application; filename="+" MemberExcel"+".xls");
OutputStream out = response.getOutputStream();
int off = 0;
int l = (int) wb1.getBytes().length;
out.write(blobdata1, off, l);
out.flush();
out.close();
}
}


my code is working fine with mozilla browser but when iam using IE browser iam not getting file download manager. please give me your ideas to solve this problem. thanks
[ November 10, 2008: Message edited by: vijay akni kumar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic