ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Servlets
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the difference between do get/dopost
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between do get/dopost
Answer
# 1
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 ?    8 Yes 3 No
Om Shastri
 
  Re: what is the difference between do get/dopost
Answer
# 2
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 ?    12 Yes 3 No
Kishore
 
 
 
  Re: what is the difference between do get/dopost
Answer
# 3
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 ?    0 Yes 1 No
Manasa
 
  Re: what is the difference between do get/dopost
Answer
# 4
The doGet  we can send limited data’s only 0 to 255 
characters but doGet we can pass unlimited datas
 
Is This Answer Correct ?    0 Yes 2 No
Baskar
 
  Re: what is the difference between do get/dopost
Answer
# 5
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 ?    0 Yes 0 No
Suresh S
 
  Re: what is the difference between do get/dopost
Answer
# 6
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 ?    0 Yes 0 No
Thennavan.m
 
  Re: what is the difference between do get/dopost
Answer
# 7
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 ?    0 Yes 0 No
Ravikiran
 
  Re: what is the difference between do get/dopost
Answer
# 8
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 ?    1 Yes 0 No
Srinu
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
what is the difference between do get/dopost  8
Is there any need to shutdown the web server, if you want to modify a servlet?  3
What are the methods in HttpServlet?  5
what is SSL?  2
If we disable cookies in our web page, what will happen? Zensar6
what is servlet life cycle? Inforica2
How servlets can be automatically reloaded?  1
waht is the main diference b/w servelts and JSP ? HCL5
can it possible to validate form field before execution of a servlet service method if yes how??  5
How to make servlet thread safe? InfoVista4
How can a servlet refresh automatically if some new data has entered the database? IBM2
How values can be passed from HTML page to servlet? ABC7
what is the difference between ServletContext and ServletConfig  7
What is difference between Forward() and sendRedirect() methode?  9
How do you pass the data from one servlet to another servlet? HCL6
How will you open a new page after certain interval of time (5 sec), on clicking of a button in an html page?  2
What are the exceptions thrown by Servlets? Amplify-Mindware3
hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz  2
Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements? AZTEC4
can we use more than one controller in web application IBM1
 
For more Servlets Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com