Someplace at the end of your Action Class you could set the mime type and: String contentType = "application/xls"; //i believe this is the correct mime type for excel byte[] fromDB = lobHandler.getByteStreamFromDB();
if (contentType.equals("text/richtext")) response.setContentType(contentType); javax.servlet.ServletOutputStream out = response.getOutputStream(); //out.write((byte[]) request.getAttribute("binaryData")); // where data is byte[] containing the filedata out.write(fromDB); out.flush(); out.close(); return null; --- Syed Niaz <[EMAIL PROTECTED]> wrote: > > Hi > > Can anyone send me a sample code for opening an > MS-EXCEL using struts . > > ... or some tips on how/where to set the > content-type ,etc > > Thanks > > Regards, > Syed Niaz > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>