Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between do get/dopost

Answers were Sorted based on User's Feedback



what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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

what is the difference between do get/dopost..

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 is the difference between do get/dopost..

Answer / manasa

doget is actually used as something dats used to retrieve data and dopost is something dats used to insert data...and dopost is more confidential about data...

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Servlets Interview Questions

Can I override destroy() method of Servlets?

4 Answers   Accenture,


what is EJB and Java servlet

2 Answers  


Difference between forward() method and sendredirect() method ?

0 Answers  


what is meant by servlet to servlet communication?

1 Answers   KPIT,


what happens if we wont use destroy()?

4 Answers   IBM,


What is the capacity that doGet method can send to the server?

5 Answers  


How can the session in servlet be destroyed?

0 Answers  


How to work with Chinese login page (internationalization).if he enters user name and password in chinese, how is it converted to English and validate in db? And in reverse it should display welcome message in Chinese,if user is valid

4 Answers   Bosch,


How do you invoke a servelt?

0 Answers  


Is tomcat a servlet container?

0 Answers  


How do you pass the data from one servlet to another servlet?

11 Answers   HCL,


Explain session tracking and its importance?

0 Answers  


Categories