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   To Refer this Site to Your Friends   Click Here
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 ?    7 Yes 2 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 ?    10 Yes 1 No
Kishore
 
 
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
What is session variable in servlets?  1
What is URL Rewriting ?  1
i have 500 jsp in my application ,with same forward name,it lokks for appropritae jsp from 1 to 500,but i want to send response to 498 page,what should i do Globerian1
if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler Polaris2
How do you create connections for number of users, if you want to improve performance?  1
What is connection pooling? Wipro3
What are cookies and how will you use them?  2
how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply.. Siemens2
How to run a servlet program?  2
What is with the javax.servlet package naming?  1
how the jsp page can be regenerated? HCL1
Can you send the mail from a servlet ,if yes tell how?  1
Can we override the ActionServlet? HCL3
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method? AZTEC1
What method is used to create database connection in servlets?  1
can we create more than ServletContext and ServletConfig in your application Patni4
what are the way a client can be tracked? IBM1
waht is the main diference b/w servelts and JSP ? HCL5
what are the disadvantages of cookies?  2
What is the default HttpRequest method?  1
 
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