http://www.codetoad.com/asp_excel.asp This link may help, read down through all the comments for the full story. This works great in asp, but I have not tried it with a jsp yet. The idea is to create the spreadsheet in excel, then save it in html format. Open the html file that excel created and insert your code.
In asp, I just create a link that calls this "asp" page. It prompts the user to either open the file, or save it to their system.
Have you looked at the Jakarta POI project?
Hope this helps.
Eric
[ March 25, 2006: Message edited by: Eric Gero ]
[ March 25, 2006: Message edited by: Eric Gero ]