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
What are the supporting protocol by HttpServlet ?
What is SingleThreadModel interface?
Can you refresh servlet in client and server-side automatically?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
How do cookies work in servlets?
How servlets are deployed in java?
What is Servlet API used for connecting database?
How do you create a cookie using servlet?
Explain the difference between a web server and a web container?
Explain url encoding?
Which is the methods of generated servlet?
How to notify an object in session when session is invalidated or timed-out?
What is lazy loading and what is Generic Servlet Class?
Define context initialization parameters.
How to generate the server side programming and the advantages of it over the other languages?