user3630867
user3630867

Reputation: 3

Java Resful Webserver. Send Excel sheet as response with 2 addtional variables

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

Answers (1)

Mike Thomsen
Mike Thomsen

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

Related Questions