Hi I am trying to send an associative array to a JSP servlet in a POST request. How do I handle that array in the servlet. Can I even do it? I just want to convert that assoc array in to a hashset/table in JSP.
Share
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.
Easiest way would be to POST some JSON and then consume the JSON in the servlet. The Jackson library can unmarshall JSON to a HashMap (or equiv) with one line of code.
If you provide us with some example data then i could suggest some code…