[jboss-user] [JBoss Portal] - Re: SaveAs CSV file

julien@jboss.com do-not-reply at jboss.com
Wed Jul 4 20:52:37 EDT 2007


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.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060614#4060614

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060614



More information about the jboss-user mailing list