Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serve up excel files via JSP  RSS feed

 
Sasikanth Malladi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy ranchers,
I've got a few excel reports which I need to make available via a JSP.
My problem is two fold:
1. I need to store the excel files into an Oracle 10g DB.
2. I need to make these files downloadable via a JSP.

I suppose #1 doesn't really belong here, but I'm hoping someone has already done this and will share their knowledge.

Any tips/pointeres/references on how to do this? I've googled around and tried to first figure out how to store excel files in an Oracle table, but I'm still struggling with getting it done successfully.
Once I do get that done, though, once a user clicks on a button to get the report, what is a good way of offering the file for download?
Thanks,
Sasikanth
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a couple of good ways to download the file, but none of the good ways involves a JSP in any way. JSP is meant for generating HTML. It can be stretched to generate other text formats, but Excel doesn't use a text format to store its data.

You should simply use a download servlet. JSP is the wrong tool for the job here.
 
Sasikanth Malladi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am flexible. How can it be done with a servlet?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the Ranch's FAQ page ImageServlet (skip over the part which is specifically about images, though).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!