hi,
We are using struts and websphere in our application.
Requirement:
User inputs search criteria and submits, we have to search database, retreive the results, generate comma separated string and flush it as download file which user can save or open..
Our logic is working in our local server ,but giving error in customer place. The difference is at the customer place, https is used instead of http.
part of the code...
byte[] sdownload_content = sdownload_string.toString().getBytes();
oresp.setContentType("application/download");
String sfile_name = prepareFileName(senterprise_code);
oresp.setHeader("Content-Disposition","attachment;filename="+sfile_name);
ServletOutputStream out = oresp.getOutputStream();
out.write(sdownload_content);
out.flush();
out.close();
I am getting two errors...
1. The dowloading file name is coming as servletname(action class mapping)
2. Getting error(popup message) saying that either the site is not availabe or server is down..
Both the above problems are not happing in local server(development server)..
Its urgent.. pls. help..
Thanks in advance..
Best Regards,
Satheesh