Which of the following statements are true?
-
HttpServletRequest getParameter(...) retrieves the parameter value from the request
-
HttpServletResponse getAttribute(...) retrieves the attribute value from the response
-
HttpServletResponse getParameter(...) retrieves the parameter value from the response
-
HttpServletRequest setParameter(...) sets the parameter value to the request
HttpServletRequest.getParameter() retrieves request parameter values sent by the client (from query string or POST body). Option B is wrong because HttpServletResponse has no getAttribute() method - attributes are on requests, not responses. Option C is wrong because HttpServletResponse has no getParameter() - parameters belong to requests only. Option D is wrong because HttpServletRequest has no setParameter() method - request parameters are read-only once set by the client.