• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create an xls file from jsp  RSS feed

 
Rekha Pai
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create an xls sheet from jsp with read write permission.
can anybody help?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is something you should not be doing in a JSP, but in a servlet. Either the Apache POI or the JExcelApi libraries can be used to create XLS files; both are linked from the http://faq.javaranch.com/java/AccessingFileFormats page.

If you want to stream these files to the client, you actually HAVE to use a servlet; it won't work from a JSP. See the SimpleStream example in http://faq.javaranch.com/java/CodeBarnServlets for how to stream binary content to a browser.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!