Which of the following statements are true?
Reveal answer
Fill a bubble to check yourself
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 parameters (form data, query string parameters) from the client. HttpServletResponse does not have a getParameter() method as parameters are only in requests. There is no setParameter() method in HttpServletRequest - parameters are read-only once set. HttpServletResponse.getAttribute() doesn't exist - attributes are on requests, not responses.