1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

  • Exception handling in Servlet and JSP specifications view answer
  • Details about load on startup (load-on-startup tag) in Servlet ? view answer
  • What's the difference between init() & init(ServletConfig) and Which is better ? view answer
  • Servlet Life Cycle ? view answer
  • Q. Can we override init() or init(ServletConfig) method of HttpServlet ? Which is better ? view answer
  • Q. Can we override service method in HttpServlet ? view answer
  • Q.What is the difference between init() and init(ServletConfig) ? view answer
  • Q.How to upload an File/image from servlet/jsp into server from clients machine? view answer
  • What's the difference between init() & init(ServletConfig) in genericServlet ? view answer
  • Q.What is the difference between ServletContext and PageContext? view answer
  • Q.What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()? view answer
  • Q.Difference forward() and response.sendRedirect() . view answer
  • Q.Can we use the constructor, instead of init(), to initialize servlet? view answer
  • Q.Explain the life cycle of Servlet? view answer
  • Q.Why don't we write a constructor in a servlet? view answer
  • Q.When we don't write any constructor for the servlet, how does container create an instance of servlet? view answer
  • Q.Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()? view answer
  • Q.Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time? view answer
  • Q.Request parameter How to find whether a parameter exists in the request object? view answer
  • What is new in ServletRequest interface ? view answer
  • Q.Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html view answer
  • Q.When a client request is sent to the servlet container, how does the container choose which servlet to invoke? view answer
  • Q.What is servlet container? view answer
  • Why IllegalStateException in jsp/servet? view answer
  • Q.How do I upload a file in a servlet app? view answer
  • Q.What's the difference between response.sendRedirect() and requestDispatcher.forward() ? view answer
  • Q.How do I implement security for my web application ? view answer
  • Q.How can I use servlets with protocols other than HTTP, e.g. FTP? view answer
  • Q.What happens if i call destroy() from init()? view answer
  • Q.Why can't a container call constructor having parameters? view answer
  • Q.Why do servlets have an init method? Can't we make use of the servlet constructor for initialization? view answer
  • Q.Explain the life cycle methods of a Servlet. view answer
  • Q.Explain the directory structure of a web application view answer
  • Q.What are the common mechanisms used for session tracking? view answer
  • What is load-on-startup in servlet ? view answer
  • Q. What is the difference between the getRequestDispatcher(String) and getNamedDispatcher(String) methods in the ServletContext Class? view answer
  • Q: What is the difference between Difference between doGet() and doPost()? view answer
  • Q. What is the difference between ServletContext and ServletConfig? view answer
  • Q: What is the difference between HttpServlet and GenericServlet? view answer
  • Q.What is the difference between the getRequestDispatcher(String path) method of ServletRequest interface and ServletContext interface? view answer

!!! Servlet Frequently Asked Questions !!!

Q. Can we override service method in HttpServlet ?

!!!Answer!!!- From Technical Expert

You can override service method in HttpServlet also.
If you override service method in HttpServlet then call will go to service() method instead of doGet() or doPost() method.

If the jsp form you mentioned
<form name="reg" method="post">
then also call will go to service method of the servlet. Call don't go to doPost() method. you can call doPost() method explicitly from servive() method.
If the jsp form you mentioned
<form name="reg" method="get">
then also call will go to service method of the servlet. Call don't go to doGet() method. you can call doGet () method explicitly from servive() method.

Answered By : vineet Replied Date : Jun 28 2012
Answer : good Explaination Thankx buddy:))


Answered By : null Replied Date : Jan 30 2014
Answer :


Answered By : null Replied Date : Dec 26 2013
Answer :


Answered By : null Replied Date : Dec 25 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 1 2013
Answer :


Answered By : null Replied Date : Oct 22 2013
Answer :


Answered By : null Replied Date : Oct 16 2013
Answer :


Answered By : null Replied Date : Oct 13 2013
Answer :


Answered By : null Replied Date : Oct 13 2013
Answer :


Answered By : null Replied Date : Oct 10 2013
Answer :


Answered By : null Replied Date : Oct 8 2013
Answer :


Answered By : null Replied Date : Sep 29 2013
Answer :


Answered By : null Replied Date : Feb 5 2014
Answer :


Answered By : null Replied Date : Feb 5 2014
Answer :


Answered By : null Replied Date : Feb 7 2014
Answer :


Answered By : null Replied Date : Feb 16 2014
Answer :


Answered By : null Replied Date : Feb 17 2014
Answer :


Answered By : null Replied Date : Apr 7 2014
Answer :


Answered By : null Replied Date : Apr 10 2014
Answer :


Answered By : null Replied Date : Apr 21 2014
Answer :


Answered By : null Replied Date : May 15 2014
Answer :


Answered By : null Replied Date : Jun 7 2014
Answer :


Answered By : null Replied Date : Jul 18 2014
Answer :


Answered By : null Replied Date : Jul 18 2014
Answer :


Answered By : null Replied Date : Aug 14 2014
Answer :


Answered By : null Replied Date : Sep 27 2014
Answer :


Answered By : null Replied Date : Nov 3 2014
Answer :


Answered By : null Replied Date : Nov 4 2014
Answer :


Answered By : null Replied Date : Nov 21 2014
Answer :


Answered By : null Replied Date : Dec 21 2014
Answer :


Answered By : null Replied Date : Dec 30 2014
Answer :


Answered By : null Replied Date : Mar 1 2015
Answer :


Answered By : null Replied Date : Mar 8 2015
Answer :


Answered By : null Replied Date : May 11 2015
Answer :


Answered By : null Replied Date : May 14 2015
Answer :


Answered By : null Replied Date : May 15 2015
Answer :


Answered By : null Replied Date : May 18 2015
Answer :


Answered By : null Replied Date : Jun 8 2015
Answer :


Answered By : null Replied Date : Jun 19 2015
Answer :


Answered By : null Replied Date : Jul 1 2015
Answer :


Answered By : null Replied Date : Aug 14 2015
Answer :


Answered By : null Replied Date : Aug 18 2015
Answer :


Answered By : null Replied Date : Oct 14 2015
Answer :


Answered By : null Replied Date : Oct 15 2015
Answer :


Answered By : null Replied Date : Oct 18 2015
Answer :


Answered By : null Replied Date : Nov 12 2015
Answer :


Answered By : null Replied Date : Dec 17 2015
Answer :


Answered By : null Replied Date : Dec 20 2015
Answer :


Answered By : null Replied Date : Dec 22 2015
Answer :


Answered By : null Replied Date : Dec 25 2015
Answer :


Answered By : null Replied Date : Dec 27 2015
Answer :


Answered By : null Replied Date : Jan 12 2016
Answer :


Answered By : null Replied Date : Jan 19 2016
Answer :


Answered By : null Replied Date : Feb 1 2016
Answer :


Answered By : null Replied Date : Feb 2 2016
Answer :


Answered By : null Replied Date : Feb 3 2016
Answer :


Answered By : null Replied Date : Feb 18 2016
Answer :


Answered By : null Replied Date : Apr 7 2016
Answer :


Answered By : null Replied Date : Apr 9 2016
Answer :


Answered By : null Replied Date : Apr 11 2016
Answer :


Answered By : null Replied Date : Apr 14 2016
Answer :


Answered By : null Replied Date : Apr 14 2016
Answer :


Answered By : null Replied Date : Apr 16 2016
Answer :


Answered By : null Replied Date : Apr 16 2016
Answer :


Answered By : null Replied Date : Apr 17 2016
Answer :


Answered By : null Replied Date : Apr 18 2016
Answer :


Answered By : null Replied Date : Apr 18 2016
Answer :


Answered By : null Replied Date : Apr 21 2016
Answer :


Answered By : null Replied Date : Apr 23 2016
Answer :


Answered By : null Replied Date : Jun 14 2016
Answer :


Answered By : null Replied Date : Jul 7 2016
Answer :


Answered By : null Replied Date : Jul 7 2016
Answer :


Answered By : null Replied Date : Jul 13 2016
Answer :


Answered By : null Replied Date : Aug 22 2016
Answer :


Answered By : null Replied Date : Aug 23 2016
Answer :


Answered By : null Replied Date : Aug 25 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Nov 14 2016
Answer :


Answered By : null Replied Date : Nov 16 2016
Answer :


Answered By : null Replied Date : Nov 17 2016
Answer :


Answered By : null Replied Date : Dec 6 2016
Answer :


Answered By : null Replied Date : Dec 9 2016
Answer :


Answered By : null Replied Date : Dec 11 2016
Answer :


Answered By : null Replied Date : Dec 23 2016
Answer :


Answered By : null Replied Date : Dec 25 2016
Answer :


Answered By : null Replied Date : Dec 27 2016
Answer :


Answered By : null Replied Date : Jan 19 2017
Answer :


Answered By : null Replied Date : Feb 14 2017
Answer :


Answered By : null Replied Date : Mar 25 2017
Answer :


Answered By : null Replied Date : Apr 21 2017
Answer :


Answered By : null Replied Date : Jun 13 2017
Answer :


Answered By : null Replied Date : Jun 20 2017
Answer :


Answered By : null Replied Date : Jun 22 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy