what is the difference between do get/dopost
Answers were Sorted based on User's Feedback
Answer / kishore
doGet method will append data to URL while transferring
data to the server.
doPost method will not append data. It is considered to be
secured. The data will be inside the body of request and
response.
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / om shastri
doGet is called in response to an HTTP GET request. This
happens when users click on a link, or enter a URL into the
browser's address bar. It also happens with some HTML FORMs
(those with METHOD="GET" specified in the FORM tag).
doPost is called in response to an HTTP POST request. This
happens with some HTML FORMs (those with METHOD="POST"
specified in the FORM tag).
Both methods are called by the default (superclass)
implementation of service in the HttpServlet base class.
You should override one or both to perform your servlet's
actions. You probably shouldn't override service().
Is This Answer Correct ? | 9 Yes | 5 No |
Answer / thennavan.m
doGet(): 1.The query String "display" the Client browser.
2.The max of query string 0 to 255 Character to
be send.
doPost(): 1. The query String to "Hide" the Client browser.
2. No limitation of data to be send.
3. The data to be send separate packet on the
server.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / srinu
doGet:-
1)doGet() method this is default HttpRequest method
2)The request parameters as a query string in the Visible in
address bar.
3)it sends limited data
4)security is low because query string visible in the
address bar
5)It doesn't used multiform content data(i.e file uploading
operation) never used.
6)small scale application.
doPost:-
1)doPost()method this n't a default HttpRequest method
2)The request parameters as a query string does n't Visible
in address bar.
3)it sends unlimited data.
4)Security is high.
5)its used for multiform content data
6)large scale application.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / suresh s
Both are processing for request and response of a client.By
using doGet we can send less amount of data compare to doPost.
If we use doget the users sensitive data(user name &
password)will be displayed in the URL.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravikiran
doGet will append the request parameters as a query string
to the url,
where as the doPost will post the data content on the body
of the jsp page
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / baskar
The doGet we can send limited data’s only 0 to 255
characters but doGet we can pass unlimited datas
Is This Answer Correct ? | 2 Yes | 3 No |
Answer / srikanth b
Get:-
1.Get is read only request, means by using get the web
client is not going to update any information on server side.
2.In get the request paramaters info or client info is added
to uri in the form of Query String(Request Parameters) and
it is visible in browser's adders bar.So we cant send
sensitive info to the Server.
3.The no of characters can be placed in the adders bar are
limited(8000 chars). So we cant send huge amount of data.
4.We can send only ascii data here.
Post:-
1.Post is not read only request, it is an update request,
means by using post the web client is going to update any
information on server side.
2.In post the request paramaters info or client info is
placed in the entity body.As request parameters are added to
entity body they are not visible in the browser's adderss
bar.So we can send sensitive info to the Server.
3.In the entity body we can palce huge data. There is no
size limitation. So we can send huge amount of data.
4.We can send ascii and binary data from web client to web
server.
Is This Answer Correct ? | 0 Yes | 1 No |
What compiler do not do if we create our own constructor?
What are the steps involved in placing a servlet within a package?
Explain the features are in servlet 3?
request parameter how to find whether a parameter exists in the request object?
how can we execute servelt? what the use ".war" or ".jar" file creation
What are all the ways for session tracking?
What are the annotations used in servlet 3?
What is servlet interface?
When a servlet accepts a call from a client, it receives two objects. What are they?
Does servlet have main method?
When we don't write any constructor for the servlet, how does container create an instance of servlet?
What is HTTP Tunneling?