I'd like to know if its conform to the java servlet specification 2.5 to reference/save the return value of request.getParameterMap()
between requests.
The final specification only states at page 203:
Returns: an immutable java.util.Map
containing 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.
But it's not clear to me:
if the Map is only immutable to the application, not to the application server
if it's allowed that the application server may re-use the instance for another request (for example, if the parameters and their values are the same as in the previous request)
EDIT: The reason for this: I'd like to save the request map of each request and in case of an error to print them out for diagnostic purposes.