Exemple #1
0
  /** Return true if the path refers to a jar file in WEB-INF and is a system jar. */
  private boolean systemJarInWebinf(String path) {

    if (path.indexOf("/WEB-INF/") < 0) {
      return false;
    }

    Boolean useMyFaces =
        (Boolean) ctxt.getServletContext().getAttribute("com.sun.faces.useMyFaces");

    if (useMyFaces == null || !useMyFaces) {
      for (String jar : systemJsfJars) {
        if (path.indexOf(jar) > 0) {
          return true;
        }
      }
    }

    for (String jar : systemJars) {
      if (path.indexOf(jar) > 0) {
        return true;
      }
    }
    return false;
  }
Exemple #2
0
 public ServletContext getServletContext() {
   return ctxt.getServletContext();
 }