trying to change one jsf application using jsp, servlet and java, in jsf application we were using
ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
InputStream var= exctx.getResourceAsStream("/dir/file.xml");
tried to replace extc with FileInputStream, always getting filenot found exception.
In JSF application this is working well
With Servlets, you should use the
ServletContextto load an external resource.