My upload and download servlet work very well in javawebserver 2.0 but it does not work websphere,to be preceise some times it works and sometimes it does not In particular I am not able download excel files.But I am able to download all files .doc,.ppt.xls etc in java webserver pls help it is very urgent.
"Shuba", Firstly, please change your name to comply with the naming policy. http://www.javaranch.com/name.jsp. You can change ithere Accounts with invalid display names gete deleted. Also, please give more descriptive topics to your threads - not your name. Help us help you. Thanks. Dave
maybe a late response but it might help somebody, heres the piece of code that works!! obj_ArgHttpServletResponse.setContentType("text"); obj_ArgHttpServletResponse.setHeader("Content-Disposition", "attachment; filename=\"" +sFileName + "\""); ServletOutputStream obj_ServletOutputStream = obj_ArgHttpServletResponse.getOutputStream(); String sFileContent = obj_StringBufferSessionContent.toString(); obj_ServletOutputStream.print(sFileContent); obj_ServletOutputStream.flush(); obj_ServletOutputStream.close(); sFileName is the excel file name,obj_StringBufferSessionContent is the content to be displayed. use the Dispatcher technique to display it onto a jsp -cheers
mail me @ email@example.com<br />Websphere 4.0 Certified Administrator<br />BEA Weblogic 5.1 Certified Developer<br />Sun Certified Java Programmer
Joined: Aug 31, 2002
Now the problem is not excel files.Thanks.Another problem is Upload is happening only once and it stops.On consequent uploads it happens only for for small .txt files.This is a problem in WebSphere.Pls help it is urgent.
"Shuba", You have not changed your name to comply with the naming standard. (See my previous post) This is the last warning before we delete the account, please change your display name immediately. When you say you are not able to upload or download, what happens? Do you get an empty upload or download, is it corrupted, or is something else happening? Dave