[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

dustismo do-not-reply at jboss.com
Wed Jan 23 11:22:19 EST 2008


  | 
  | FacesContext context = FacesContext.getCurrentInstance();
  | HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
  | response.setContentType(contentType); //fill in contentType 
  | OutputStream os = response.getOutputStream();
  | os.write(bytes); //fill in bytes
  | os.flush();
  | os.close();
  | context.responseComplete();
  | 
  | 

-Dustin

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

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



More information about the jboss-user mailing list