Skip to main content
1 of 3
vara
  • 71
  • 1
  • 1

I feel it would be helpful for someone who is looking for passing the array in a query string to a servlet. I tested below query string and was able to get the array values using req.getgetParameterValues(); method. Below is the query string I passed through browser.

"http://localhost:8080/ServletsTutorials/*.html?myname=abc&initial=xyz&checkbox=a&checkbox=b"

checkbox is my parameter array here.

vara
  • 71
  • 1
  • 1