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 data sent from an HTML page (like form inputs or query parameters), the servlet uses request.getParameter(String name). Methods on the response object are used for sending data back to the client, and there is no standard setParameter() method on the HTTP request object.