In servlets, Why do we need both GET and POST method
implementations?
Answer Posted / amit pandey
In servlet, the default method is doget(), which has
various limitations like the request length shuld be < than
1024 characters, all the information r send as URL, which
is not secure, large data like images cannot be send in URL.
Hence the POST method is implementated that overcome all
this issues w.r.t. the GET method.
Hence, in order that application shuld be more secure &
user orientated, both the methods are impelmentated.
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Is servlet synchronized?
What exception should be thrown when servlet is not properly initialized?
How does tomcat servlet container work?
Why is Servlet so popular?
How can the referrer and the target urls be used in servlet?
Why jsp is better than servlet?
Define the life cycle of a servlets.
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is the purpose of dispatcherservlet properties?
Explain Action Servlet?
How printwriter is different from servletoutputstream?
What is servletconfig?
What is getservletcontext?
What is servlet collaboration?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>