else if (button.equals("submit_subjects")) {  url = request.getContextPath() + prefix + "browse-subject"; }
    private boolean handleButton(HttpServletRequest request,            HttpServletResponse response, String handle) throws IOException    {        String button = UIUtil.getSubmitButton(request, "");        String location = request.getParameter("location");        String prefix = "/";        String url = null;        if (location == null)        {            return false;        }        /*         * Work out the "prefix" to which to redirect If "/", scope is all of         * DSpace, so prefix is "/" If prefix is a handle, scope is a community         * or collection, so "/handle/1721.x/xxxx/" is the prefix.         */        if (!location.equals("/"))        {            prefix = "/handle/" + location + "/";        }        if (button.equals("submit_titles"))        {            // Redirect to browse by title            url = request.getContextPath() + prefix + "browse-title";        }        else if (button.equals("submit_authors"))        {            // Redirect to browse authors            url = request.getContextPath() + prefix + "browse-author";        }        else if (button.equals("submit_dates"))        {            // Redirect to browse by date            url = request.getContextPath() + prefix + "browse-date";        }        else if (button.equals("submit_search")                || (request.getParameter("query") != null))        {            /*             * Have to check for search button and query - in some browsers,             * typing a query into the box and hitting return doesn't produce a             * submit button parameter. Redirect to appropriate search page             */            url = request.getContextPath()                    + prefix                    + "simple-search?query="                    + URLEncoder.encode(request.getParameter("query"),                            Constants.DEFAULT_ENCODING);        }        // If a button was pressed, redirect to appropriate page        if (url != null)        {            response.sendRedirect(response.encodeRedirectURL(url));            return true;        }        return false;    }