Export to Excel JSF and PrimeFaces

前端 未结 3 1947
梦毁少年i
梦毁少年i 2020-12-01 11:08

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

3条回答
  •  不思量自难忘°
    2020-12-01 11:34

    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.

提交回复
热议问题