When using download Action 2 Dialogue Windows are opening.
Is it wrong in adding
response.setHeader("Content-Disposition.........
---------------------------------------
protected StreamInfo getStreamInfo(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response)
throws FileNotFoundException,CAcsException,Exception {
...........
............
ServletContext servletContext = getServlet().getServletContext();
strTemplatePath =
servletContext.getResource(strTemplateDirName).getPath();
file = new File(strTemplatePath+strFileName);
strContentType =servletContext.getMimeType(strTemplatePath);
response.setHeader("Content-Disposition","attachment;filename=\"" +
strFileName + "\""); // set header information
return new FileStreamInfo(strContentType, file);
............
.............
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]