[jboss-user] [Beginners Corner] - Re: ear: read a file from webapplication

mars1412 do-not-reply at jboss.com
Thu Mar 6 04:34:50 EST 2008


tx for the reply
actually I just looked into the seam source how the seam.properties file is read and came up with this solution:

javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
  | ServletContext servletContext = (ServletContext)facesContext.getExternalContext().getContext();
  |     		
  | InputStream is = Resources.getResourceAsStream("img\mypic.gif", servletContext);
  | 

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

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



More information about the jboss-user mailing list