[jboss-user] [JBoss Seam] - Re: Seeking best way to get docRoot from the application con

DataGazetteer do-not-reply at jboss.com
Tue Jan 9 12:08:05 EST 2007

Ah, I think I see.  Something like this?

  | import javax.faces.context.FacesContext;
  | import javax.servlet.ServletContext;
  | FacesContext facesContext = FacesContext.getCurrentInstance();
  | ServletContext servletContext = (ServletContext) facesContext.getExternalContext().getContext();
  | String docBase=servletContext.getRealPath(".");

Thanks, Gavin.

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

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

More information about the jboss-user mailing list