Dynamic file download without saving file in the server
问题 I am using Apache POI libraries to do some operation on multiple excel files. I'm trying to download the excel report without storing it somewhere in the server. I am using Struts 2 which needs the file fed into a InputStream while POI Workbook needs a OutputStream to write the data into. Any help would be great 回答1: Since you already know you need a Stream result: I am using Struts 2 which needs the file fed into a InputStream // With Getter private InputStream inputStream; and you already