For example "http://site/index.jsp?id=1"
Answer
Try
Try
String getFullURL(HttpRequest request) {
StringBuffer url = request.getRequestURL();
if (request.getQueryString() != null) {
url.append('?');
url.append(request.getQueryString());
}
return url.toString();
}