Bleiglanz hat gesagt.:nein, obwohl das uU nicht "abgefangen wird"; trotzdem sollte man das nicht tun!
URL url = this.getClass().getResource("/");
File f = new File (url.getFile());
File root = f.getParentFile().getParentFile();
String taskPath = root.getPath() + "\\" + jspName + ".jsp";
File taskJSP = new File(taskPath);
if (!taskJSP.exists())
//jaha
javax.servlet.http.HttpServlet servlet;
...
String path = servlet.getServletContext().getRealPath("/WEB-INF/page/page.jsp"); // get the real path on the server, of a specific file
File datei = new File( path ); // create file object of specific path
String path = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
String taskPath = path + "\\" + jspName + ".jsp";
File taskJSP = new File(taskPath);
if (!taskJSP.exists())