R4R
Right Place For Right Person TM

What is a servlet ?

previous previous previous
Question:
What is a servlet ?

Question:What is a servlet ?


Answer
Servlets are the server side programs that runs on the server allow developer to add dynamic content and hand it to the web server and web server sent back to the client. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers. For such applications, Java Servlet technology defines HTTP-specific servlet classes. Servlets provide component-based, platform-independent methods for building Web-based applications, without the performance limitations of CGI programs. The javax.servlet and javax.servlet.http packages provide interfaces and classes for writing servlets. All servlets must implement the Servlet interface, which defines life-cycle methods. Typical uses for HTTP Servlets include : * Processing and/or storing data submitted by an HTML form. * Providing dynamic content, e.g. returning the results of a database query to the client. * Managing state information on top of the stateless HTTP, e.g. for an online shopping cart system which manages shopping carts for many concurrent customers and maps every request to the right customer.

By:Jalees
Date:

What is a servlet ?

Post Your Answers


User Name:
Answers:

Related Links

  1. Can we use the constructor, instead of init(), to initialize servlet?
  2. What is servlet context ?
  3. What is servlet mapping?
  4. What is session?
  5. What Difference between GET and POST ?
  6. What mechanisms are used by a Servlet Container to maintain session information?
  7. What are the different ways for session tracking?
  8. What is the difference between ServletContext and ServletConfig?
  9. How can a servlet refresh automatically?
  10. What is Server side push?
  11. What is the Max amount of information that can be saved in a Session Object ?
  12. Why should we go for inter servlet communication?
  13. What is a output comment?
  14. What are the differences between a session and a cookie?
  15. What is HttpTunneling?
  16. Why in Servlet 2.4 specification SingleThreadModel has been deprecated?
  17. How can I set a cookie?
  18. How will you delete a cookie?
  19. What is the difference between Context init parameter and Servlet init parameter?
  20. What are the different ways for getting a servlet context?
  21. What is the difference between an attribute and a parameter?
  22. How to make a context thread safe?
  23. What is the difference between setting the session time out in deployment descriptor and setting the time out programmatically?
  24. How can my application get to know when a HttpSession is removed?
  25. How many cookies can one set in the response object of the servlet? Also, are there any restrictions on the size of cookies?
  26. When a session object gets added or removed to the session, which event will get notified ?
  27. What is URL Encoding and URL Decoding ?
  28. What is the difference between an applet and a servlet?
  29. What is life cycle of servlet?
  30. When init() and Distroy() will be called.
  31. What is the use of setComment and getComment methods in Cookies ?
  32. Why we are used setMaxAge() and getMaxAge() in Cookies ?
  33. What is the use of setSecure() and getSecure() in Cookies ?
  34. How do you communicate between the servlets?
  35. What is Servlet chaining?
  36. How will you communicate from an applet to servlet?
  37. Can we call a servlet with parameters in the URL?
  38. How do servlets handle multiple simultaneous requests?
  39. Explain the directory structure of a web application?
  40. What is pre initialization of a servlet?
  41. What are the uses of ServletRequest?
  42. What are the uses of ServletResponse interface?
  43. How HTTP Servlet handles client requests?
  44. Is HTML page a web component?
  45. What is the web container?
  46. What is deployment descriptor?
  47. Do objects stored in a HTTP Session need to be serializable? Or can it store any object?
  48. How can you implement singleton pattern in servlets ?
  49. What is the difference between an application server and a web server?
  50. What is servlet exception?

Question:What is a servlet ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R