Posts

Showing posts from April, 2016

Revise Servlets in 10 mins

Revising Servlets in 10 mins, useful only if you have already read on servlets and just need to some guide points to recollect. Servlet is used to create dynamic web applications. Resides at server side. Implement Servlet interface to make a Servlet. Or you can extend the HTTPServlet class. Capable to serving and responding to requests. Better performance (creates new thread for each request), robust, secure and portable(since in java) Uses the HTTP Protocol to transfer data between the web server and the web browser. Stateless by default. HTTP Request methods: GET POST HEAD PUT DELETE OPTIONS TRACE Container provides runtime environment for j2ee applications Life cycle management Multithreading support object pooling Security Content Types: text/html, text/plain, images/jpeg etc Server types: Web server and application server Servlet Life Cycle: Servlet class is loaded Servlet instance is created  init method is invoked service method is invoked, every