Which two methods of the servlet should be overridden by the servlet programmer?

A Web application contains a single servlet that handles all types of requests. Within the Web
application is an HTML page that contains a form that uses a POST type request. There are also
hyperlinks with query strings associated with them. Requests arriving at the servlet via the form
must be processed differently than requests made through the hyperlinks with query strings.

Which two methods of the servlet should be overridden by the servlet programmer?

A Web application contains a single servlet that handles all types of requests. Within the Web
application is an HTML page that contains a form that uses a POST type request. There are also
hyperlinks with query strings associated with them. Requests arriving at the servlet via the form
must be processed differently than requests made through the hyperlinks with query strings.

Which two methods of the servlet should be overridden by the servlet programmer?

A.
doGet

B.
doForm

C.
doPut

D.
service

E.
doPost

F.
doQuery



Leave a Reply 0

Your email address will not be published. Required fields are marked *