Reputation: 3
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.
Upvotes: 0
Views: 770
Reputation: 37506
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.
Upvotes: 1