code: private String getJspRfsPath(CmsResource resource, boolean online) throws CmsLoaderException {
  
          String jspVfsName = resource.getRootPath();
          String extension;
          int loaderId = OpenCms.getResourceManager().getResourceType(resource.getTypeId()).getLoaderId();
          if ((loaderId == CmsJspLoader.RESOURCE_LOADER_ID) && (!jspVfsName.endsWith(JSP_EXTENSION))) {
              // this is a true JSP resource that does not end with ".jsp"
              extension = JSP_EXTENSION;
          } else {
              // not a JSP resource or already ends with ".jsp"
              extension = "";
          }
          String jspPath = CmsFileUtil.getRepositoryName(m_jspRepository, jspVfsName + extension, online);
          return jspPath;
      }
docs: Returns the RFS path for a JSP resource.<p>
  
  This does not check whether there actually exists a file at the returned path.
  
  @param resource the JSP resource
  @param online true if the path for the online project should be returned
  
  @return the RFS path for the JSP
  
  @throws CmsLoaderException if accessing the resource loader fails