wood burning stoves 2.0*
The moose likes Struts and the fly likes problem with download manager in IE browser. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with download manager in IE browser." Watch "problem with download manager in IE browser." New topic

problem with download manager in IE browser.

vijay akni kumar

Joined: Aug 11, 2008
Posts: 12
i need to display excel sheet values.

iam working on struts frame work.

the jsp page calls the action method


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);

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 ]
I agree. Here's the link: http://aspose.com/file-tools
subject: problem with download manager in IE browser.
Similar Threads
problem with download manager in IE browser.
download problem
problem in headers and content types
problem when downloading excel sheet from struts application using Internet explorer
convert excel