JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp");
JSPManager.showJSP(request, response, "/tools/edit-community.jsp");
    private void processConfirmEditCommunity(Context context,        HttpServletRequest request,        HttpServletResponse response,        Community community)        throws ServletException, IOException, SQLException, AuthorizeException    {        if (request.getParameter("create").equals("true"))        {            // if there is a parent community id specified, create community            // as its child; otherwise, create it as a top-level community            int parentCommunityID = UIUtil.getIntParameter(request, "parent_community_id");            if (parentCommunityID != -1)	    {                Community parent = Community.find(context, parentCommunityID);                if (parent != null)	        {		    community = parent.createSubcommunity();                }            }            else            {               community = Community.create(context);            }            // Set attribute            request.setAttribute("community", community);        }        community.setMetadata("name", request.getParameter("name"));        community.setMetadata("short_description",            request.getParameter("short_description"));        String intro = request.getParameter("introductory_text");        if (intro.equals(""))        {            intro = null;        }        String copy = request.getParameter("copyright_text");        if (copy.equals(""))        {            copy = null;        }        String side = request.getParameter("side_bar_text");        if (side.equals(""))        {            side = null;        }        community.setMetadata("introductory_text", intro);        community.setMetadata("copyright_text", copy);        community.setMetadata("side_bar_text", side);        community.update();        // Which button was pressed?        String button = UIUtil.getSubmitButton(request, "submit");        if (button.equals("submit_set_logo"))        {            // Change the logo - delete any that might be there first            community.setLogo(null);            community.update();            // Display "upload logo" page.  Necessary attributes already set by            // doDSPost()            JSPManager.showJSP(request, response, "/dspace-admin/upload-logo.jsp");        }        else if(button.equals("submit_delete_logo"))        {            // Simply delete logo            community.setLogo(null);            community.update();            // Show edit page again - attributes set in doDSPost()            JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp");        }        else if(button.equals("submit_authorization_edit"))        {            // Forward to policy edit page            response.sendRedirect(response.encodeRedirectURL(                request.getContextPath() + "/dspace-admin/authorize?community_id=" +                    community.getID() + "&submit_community_select=1"));        }        else        {            // Button at bottom clicked - show main control page            showControls(context, request, response);        }        // Commit changes to DB        context.complete();    }