Using JDK 1.6, JSF 2.1, PrimeFaces 2.2.1, POI 3.2, and Apache Tomcat 7
I am trying to setup a servlet to allow a download of an excel file based on the user selectio
I'd also recommend looking at using the PrimeFaces FileDownload. Depending on your structure it could make this all a whole lot easier. You wouldn't have to create a servlet just a managed bean that can provide a ContentStream
.
Since you already have the servlet written though, there's no point to change, just food for thought.