Multiple choice technology programming languages

How will you pass values from HTML page to the Servlet?

  1. response.setparameter () method

  2. response.getparameter () method

  3. request.setparameter () method

  4. request.getparameter () method

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To retrieve values from an HTML form, use request.getParameter() on the HttpServletRequest object. There is no setParameter() method on request, and response is for sending data back to the client, not receiving it.