现在给你解答String getFullURL(HttpRequest request) { StringBuffer url = request.getRequestURL(); if (request.getQueryString() != null) { url.append(’?’); url.append(request.getQueryString()); } return url.toString();}