This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
you can check out the POI project from jakarta. With that you are able to create an excel sheet which you can send back to the client. POI is only responsible for creating an excel file, then simply put it into the response stream of the servlet or whatever you use. (Don't forget to set the response type)