Example usage for javax.servlet.jsp JspFactory setDefaultFactory

List of usage examples for javax.servlet.jsp JspFactory setDefaultFactory

Introduction

In this page you can find the example usage for javax.servlet.jsp JspFactory setDefaultFactory.

Prototype


public static void setDefaultFactory(JspFactory deflt) 

Source Link

Document

set the default factory for this implementation.

Usage

From source file:org.usergrid.standalone.Server.java

private void setupJspMappings() {
    if (!INSTALL_JSP_SERVLETS) {
        return;/*w  w  w  . j  a  v  a 2  s.  c o  m*/
    }

    JspFactoryImpl factory = new JspFactoryImpl();
    JspFactory.setDefaultFactory(factory);

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.TestResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/TestResource/error.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.TestResource.test_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/TestResource/test.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UsersResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UsersResource/error.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UsersResource.resetpw_005femail_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UsersResource/resetpw_email_form.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UsersResource.resetpw_005femail_005fsuccess_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UsersResource/resetpw_email_success.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.activate_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/activate.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.confirm_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/confirm.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/error.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.resetpw_005femail_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/resetpw_email_form.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.resetpw_005femail_005fsuccess_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/resetpw_email_success.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.resetpw_005fset_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/resetpw_set_form.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.users.UserResource.resetpw_005fset_005fsuccess_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/users/UserResource/resetpw_set_success.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.organizations.OrganizationResource.activate_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/organizations/OrganizationResource/activate.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.management.organizations.OrganizationResource.confirm_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/organizations/OrganizationResource/confirm.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.organizations.OrganizationResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/organizations/OrganizationResource/error.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.ManagementResource.authorize_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/ManagementResource/authorize_form.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.management.ManagementResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/management/ManagementResource/error.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UsersResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UsersResource/error.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UsersResource.resetpw_005femail_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UsersResource/resetpw_email_form.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UsersResource.resetpw_005femail_005fsuccess_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UsersResource/resetpw_email_success.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.activate_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/activate.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.confirm_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/confirm.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/error.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.resetpw_005femail_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/resetpw_email_form.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.resetpw_005femail_005fsuccess_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/resetpw_email_success.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.resetpw_005fset_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/resetpw_set_form.jsp");

    mapServlet(
            "jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.users.UserResource.resetpw_005fset_005fsuccess_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/users/UserResource/resetpw_set_success.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.ApplicationResource.authorize_005fform_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/ApplicationResource/authorize_form.jsp");

    mapServlet("jsp.WEB_002dINF.jsp.org.usergrid.rest.applications.ApplicationResource.error_jsp",
            "/WEB-INF/jsp/org/usergrid/rest/applications/ApplicationResource/error.jsp");

}