This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My doubt is about getParameter method of the HttpServletRequest object. I have a form that submits 3 values(HPUnix, Solaris, Linux). When I retrieve these values and display them I get the values in reverse-alphabetical order , i.e (Solaris, Linux, HPUnix). I think that parameter values from a form are submitted in the order in the which the corresponding elements appear in the form. I assume that the reverse alhabetical order is because of getParameter method. Please let me know whether I am correct.
They're being stored in a map, which means that you should not count on them coming out in any particular order. If you need them sorted, use getParameterNames, sort that and use the sorted list to retrieve them.