request getParameterNames

Feedback Form Servlet Example

All the time we are accustomed to read client data with getParameter() method, most probably from HTML text fields. But, HTML FORM tag includes many GUI components like radio buttons, SELECT drop down lists, text areas etc. This Client HTML comes with rarely used FORM fields. To do with, a…

getParameterNames() Example Servlets

One of the aspects of Servlets is reading the HTML/Applet data sent by the client like login data etc. For this, three methods exist in ServletRequest interface – getParameter(String), getParameterNames() and getParameterValues(String). These methods are inherited by HttpServletRequest interface. Following are the method signatures as defined in javax.servlet.ServletRequest interface. public…