title: Ordering of values in HttpServletRequest.getParameterValues()
body: <p><code>HttpServletRequest.getParameterValues()</code> returns a <code>String[]</code> containing all values of a given HTTP request parameter. Does anyone know if the order of the values in this array is guaranteed by specification to by the same as the order which those values were passed through in the request?</p>
  
  <p>For example, if I have the GET query string <code>x=1&amp;x=2&amp;x=3</code>, am I <em>guaranteed</em> to receive the <code>String[] {"1", "2", "3"}</code> when I call <code>getParameterValues()</code>? It seems to work in practice, but I can't find anything which specifies that this must be the case, so I'm reluctant to rely on it.</p>