Enumeration and getParametnames method of request object
I'm sending the data from HTML page to the Servlet and in开发者_C百科 Servlet I'm using the Enumeration from request.getParameterNames()
, but I'm not getting the data in the sequence in which it is send by the HTML page. How can I obtain it?
getParameterNames()
returns the names of the parameters. Not their values. Use getParameter(String parameterName)
to get the value of a parameter. The javadoc is your friend.
精彩评论