You can use getParameterMap() method of HttpServletRequest class to get all the parameters in the form of a Map.
The returned Map has parameter names as keys and parameter values as map values. The keys in the parameter map are of type
String. The values in the parameter map are of type String array.