• Post Reply Bookmark Topic Watch Topic
  • New Topic

getParameterNames() of the HttpServletRequest

 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't the servlet spec require that getParameterNames() return an enumeration that reflects the order of the parameters on the page that was submitted?

The app server that I am using is not returning the parameter names in the order in which they are defined in the page. Not sure if this is a vendor bug.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order is not defined. For that to work, the browser would need to submit them in order, and that is also not defined.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!