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.