In Spring MVC, I can do this to get a value of items on the query string:
public void sendMessage(HttpServletResponse response,
Add the HttpServletRequest as argument to the method, and get the query string from the request:
HttpServletRequest
public void sendMessage(HttpServletRequest request, HttpServletResponse response { String queryString = request.getQueryString(); }