In Detail : The Request Object In Servlets
The request object encapsulates all information from the client request. The information from the clients is transmitted to the server in the form of HTTP headers and the message body of the request through the HTTP protocol. What are the HTTP Protocol Parameters ? Request parameters for the servlet are nothing but strings sent by the client to a servlet container as part of its request. When the request is an HttpServletRequest object, and conditions set out are met, the container populates the parameters from the URI query string and POST-ed data. The parameters are stored as a set of name-value pairs. Multiple parameter values can exist for any given parameter name. The following methods of the ServletRequest interface are available to access parameters. getParameter() getParameterNames() getParameterValues() getParameterMap() The getParameterValues method returns an array of String objects containing all the parameter v...