Hello everyone,
I just updated to tomcat 8.0.43 and I noticed a special behavior I want to
discuss. (I don't know if this only occurs with this version)
When I add two hidden fields within a form like:
<input type="hidden" name="array[]" value="1" />
<input type="hidden" name="array[]" value="2" />
I just thought to access the parameter values within the java api like
String[] myArray = httpServletRequest.getParameterValues("array");
In my case however I just can access them like (with brackets):
String[] myArray = httpServletRequest.getParameterValues("array[]");
This also applies to httpServletRequest.getParameterMap().containsKey
Is this an expected behavior?
kind regards and thanks in advance
Tobias