This content has been marked as final.
Show 1 reply
-
1. Re: SaveAs CSV file
julien1 Jul 4, 2007 8:52 PM (in response to chuaky)You can put a servlet in the war file of your web application and create a link by doing :
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
String s = ctx.getRequestContextPath() + "/mydownloadservlet";
String url = ctx.encodeResourceURL(s);
Then use the URL in your application.