Q&A

Q1:What are the two main HTTP methods used to send requests to a Web server? What is the main difference between them? Which should I use to send large amounts of information to the server?
A1: The two main methods are GET and POST. GET adds any request parameters to the URL query string, whereas POST sends its parameters as part of the request body. The size of the URL query string is restricted and it is for this reason that you should use POST to send large amounts of information.
Q2:What are the main uses for a ServletContext object?
A2: The main uses are to set and store attributes, log events, obtain URL references to resources, and get the MIME type of files.
Q3:What are the names of the methods you must implement to handle HTTP GET and POST requests?
A3: The methods are doGet() and doPost().
Q4:What are the main uses of a servlet filter?
A4: Filters can be used to provide auditing and to change the data in or, the format of, the HTTP request or the response.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.107.210