In servlets, Why do we need both GET and POST method
implementations?

Answer Posted / upender

I agree the above two answers. Here is my view.
HTTP Get method perform the following scenarios.

1) By default form submission without specifying method
name
2)if you click on hyperlinkS or images
3) or if you type url in address bar in brower

and Get there is no side effect. simple it get the resource
form serverside. Some time we require to deal with headers

Get can send only character data and limited data.and also
It can't support binary data.

POST method can support binary data and bulk data.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the supporting protocol by HttpServlet ?

657


What is SingleThreadModel interface?

674


Can you refresh servlet in client and server-side automatically?

620


Tell the new features added in servletrequest interface i.e. Servlet 2.4

573


How do cookies work in servlets?

581






How servlets are deployed in java?

546


What is Servlet API used for connecting database?

620


How do you create a cookie using servlet?

579


Explain the difference between a web server and a web container?

517


Explain url encoding?

519


Which is the methods of generated servlet?

682


How to notify an object in session when session is invalidated or timed-out?

631


What is lazy loading and what is Generic Servlet Class?

611


Define context initialization parameters.

574


How to generate the server side programming and the advantages of it over the other languages?

563