I\'m using Play Framework 2.0.3 to create an application which delivers Excel files that should be downloadable by the user.
response().setContentType(\"applic
Play's action can return a File:
response().setContentType("application/x-download"); response().setHeader("Content-disposition","attachment; filename=tradeLogTest.xlsx"); return ok(new File("/absolute/path/to/tradeLogTest.xlsx"));
Here's an API for Results