Java Restful Webservices 1.I need to send the Excel Sheet as Response. (I am able to Generate the Excel as response.) 2.I also need to send the 2 variables as response with Excel sheet how can i do it.
Asked
Active
Viewed 754 times
1 Answers
1
The only way that'll probably work for most users would be to send the 2 variables as HTTP headers in the response (assuming the client knows to handle them) and to send the Excel document as an attachment. For the latter, just set Content-disposition to attachment.

Community
- 1
- 1

Mike Thomsen
- 36,828
- 10
- 60
- 83
-
Using HTTP headers is probably the way to go. Their name should start with "X-", as they are nonstandard. – Toilal May 19 '14 at 12:32