I've got a case where I need to have a website offer a "download results" link (i.e. return non-html dynamically created data). Normally I'd just used a DownloadAction, but the company is using Struts 1.1 (I know) and that feature doesn't exist.
My google-fu has failed me. How did people do this prior to Struts 1.2?
Thanks in advance
posted 7 years ago
Just do it the same way you would do it from a Servlet: Set the headers, Get the output stream from the HTTPServletResponse object and write your data to it. Then just return a null ActionForward from your execute method.