Can someone explain to me why ServletRequest.getParameterMap() returns type
Map<String, String[]>
ServletRequest.getParameter() just returns type String
I’m don’t understand why the map would ever map to more then one value. TIA.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It returns all parameter values for controls with the same name.
For example:
or
Any checked/selected values will come in as:
It’s also useful for multiple selections in tables:
in combination with