What is the limit of data to be passed from HTML when doGet() method is used?

Options
- 4K
- 8K
- 2K
- 1K


CORRECT ANSWER : 2K

Discussion Board
doGet()

The limit of data is 2k that needs to be passed from HTML when doGet() method is used. It uses the abstract class javax.servlet.Servlet to design the structure an entire web server around the servlet. Classes needs to be extended from one class to another and it gets extended by the subclass i.e. HttpServlet, in the package javax.servlet.http. This class calls the method:

public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;

The parameters used in this is having two argument namely: request and response. Where the request contains all the information about the request from the browser, including its input stream should you need to read data and the response argument contains information to get the response back to the browser, including the output stream to write your response back to the user.

Rohit Sharma 11-27-2014 03:38 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement