code: public void renderPage(String resource, String page) throws IOException {
          // If page comes with an extension
          String path = "/" + this.viewsPath + "/";
          if (resource != null) {
              path += resource + "/";
          }
          if (page.indexOf('.') > 1) {
              this.requestedPage = path + page;
          } else {
              // Search a page with .jsp, .html or .htm extension
              this.requestedPage = this.searchPage(path + page);
          }
      }
docs: Renders a page from a resource.
  
  @param resource
  The name of the resource (bank, account, etc...). It must
  exists below /views directory.
  @param page
  The page can have an extension or not. If it doesn't have an
  extension, the framework first looks for page.jsp, then with
  .html or .htm extension.
  @throws IOException
  if the page doesn't exist.