"/dspace-admin/confirm-delete-collection.jsp");
"/tools/confirm-delete-collection.jsp");
    protected void doDSPost(Context context,        HttpServletRequest request,        HttpServletResponse response)        throws ServletException, IOException, SQLException, AuthorizeException    {        // First, see if we have a multipart request (uploading a logo)        String contentType = request.getContentType();        if (contentType != null &&            contentType.indexOf("multipart/form-data") != -1)        {            // This is a multipart request, so it's a file upload            processUploadLogo(context, request, response);            return;        }        /*         * Respond to submitted forms.  Each form includes an "action" parameter         * indicating what needs to be done (from the constants above.)         */        int action = UIUtil.getIntParameter(request, "action");        /*         * Most of the forms supply one or more of these values.  Since we just         * get null if we try and find something with ID -1, we'll just try         * and find both here to save hassle later on         */        Community community = Community.find(context,            UIUtil.getIntParameter(request, "community_id"));        Community parentCommunity = Community.find(context,            UIUtil.getIntParameter(request, "parent_community_id"));        Collection collection = Collection.find(context,            UIUtil.getIntParameter(request, "collection_id"));        // Just about every JSP will need the values we received        request.setAttribute("community", community);        request.setAttribute("parent", parentCommunity);        request.setAttribute("collection", collection);        /*         * First we check for a "cancel" button - if it's been pressed, we         * simply return to the main control page         */        if (request.getParameter("submit_cancel") != null)        {            showControls(context, request, response);            return;        }        // Now proceed according to "action" parameter        switch (action)        {        case START_EDIT_COMMUNITY:            // Display the relevant "edit community" page            JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp");            break;        case START_DELETE_COMMUNITY:            // Show "confirm delete" page            JSPManager.showJSP(request, response,                "/dspace-admin/confirm-delete-community.jsp");            break;        case START_CREATE_COMMUNITY:            // Display edit community page with empty fields + create button            JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp");            break;        case START_EDIT_COLLECTION:            // Display the relevant "edit collection" page            JSPManager.showJSP(request, response, "/dspace-admin/edit-collection.jsp");            break;        case START_DELETE_COLLECTION:            // Show "confirm delete" page            JSPManager.showJSP(request, response,                "/dspace-admin/confirm-delete-collection.jsp");            break;        case START_CREATE_COLLECTION:            // Forward to collection creation wizard            response.sendRedirect(response.encodeRedirectURL(                request.getContextPath() + "/dspace-admin/collection-wizard?community_id=" +                    community.getID()));            break;        case CONFIRM_EDIT_COMMUNITY:            // Edit or creation of a community confirmed            processConfirmEditCommunity(context, request, response, community);            break;        case CONFIRM_DELETE_COMMUNITY:            // remember the parent community, if any            Community parent = community.getParentCommunity();            // Delete the community            community.delete();            // if community was top-level, redirect to community-list page            if (parent == null)	    {                response.sendRedirect(response.encodeRedirectURL(                     request.getContextPath() + "/community-list"));            }            else // redirect to parent community page	    {                response.sendRedirect(response.encodeRedirectURL(                     request.getContextPath() + "/handle/" + parent.getHandle() ));            }             // Show main control page            //showControls(context, request, response);            // Commit changes to DB            context.complete();            break;        case CONFIRM_EDIT_COLLECTION:            // Edit or creation of a collection confirmed            processConfirmEditCollection(                context, request, response, community, collection);            break;        case CONFIRM_DELETE_COLLECTION:            // Delete the collection            community.removeCollection(collection);             // Show main control page            showControls(context, request, response);            // Commit changes to DB            context.complete();            break;        default:            // Erm... weird action value received.            log.warn(LogManager.getHeader(context,                "integrity_error",                UIUtil.getRequestLogInfo(request)));            JSPManager.showIntegrityError(request, response);        }    }