How Can I generate a file in RemoteServiceServlet and send it to a user?
问题 Maybe I can disable RemoteServiceServlet response serialization or define RemoteService interface with method that returns ServletOutputStram? I would like not to save request in any database to file to process it in another request. 回答1: If you want to provide a download to the user, you can do it like this: Write another servlet which simply writes out the file content through the ServletResponse Make sure you have a binary header and provide the filename in there, too. In your client, make