What is wrong with this servlet?

Click the Exhibit button.
As a maintenance feature, you have created this servlet to allow you to upload and remove files
on your web server. Unfortunately, while testing this servlet, you try to upload a file using an HTTP
request and on this servlet, the web container returns a 404 status.
What is wrong with this servlet?

Click the Exhibit button.
As a maintenance feature, you have created this servlet to allow you to upload and remove files
on your web server. Unfortunately, while testing this servlet, you try to upload a file using an HTTP
request and on this servlet, the web container returns a 404 status.
What is wrong with this servlet?

A.
HTTP does NOT support file upload operations.

B.
The servlet constructor must NOT have any parameters.

C.
The servlet needs a service method to dispatch the requests to the helper methods.

D.
The doPut and doDelete methods do NOT map to the proper HTTP methods.

Explanation:



Leave a Reply 0

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