String fullURL = request.getContextPath() + request.getServletPath();
String fullURL = request.getRequestURL().toString();
    public static void storeOriginalURL(HttpServletRequest request)    {        String orig = (String) request.getAttribute("dspace.original.url");        if (orig == null)        {            String fullURL = request.getContextPath() +                request.getServletPath();            if (request.getQueryString() != null)            {                fullURL = fullURL + "?" + request.getQueryString();            }            request.setAttribute("dspace.original.url", fullURL);        }    }