Before going for differences, first let us see how the three Servlet, Observe the hierarchy and understand the relationship between the three. The main difference between GenericServlet and HttpServlet is that the GenericServlet is protocol independent and can be used with any. hi whats the main difference between Generic & httServlet??.
|Published (Last):||7 October 2004|
|PDF File Size:||1.5 Mb|
|ePub File Size:||5.23 Mb|
|Price:||Free* [*Free Regsitration Required]|
Anonymous 2 May at Sign up using Facebook. Moreover, it is possible to write a Servlet using three methods: Anonymous 14 April differsnce Very interesting content which helps me to get the indepth knowledge about the technology. Rajnish Jha 18 December at Anonymous 6 July at Vishal Wable 8 March at GenericServlet is the basic, protocol-neutral implementation of the Servlet interface. It is a special type of Servlet which is actually a pretty minimal interface.
Jalak Patel 29 April at httpservleet What is single thread model and multi thread model in servlet? Please like my answer also. GenericServlet also implements the log method, declared in the ServletContext interface. Jaydip Baldha 96 1 4.
BeanFactory -Does not support the Annotation based dependency Injection. Kiran Mohan Reddy B 8 November at Anonymous 16 November at I am a regular follower of your blog. Used with Servlets only. HttpServlet overrides the service method in GenericServlet.
Difference Between GenericServlet and HttpServlet
Container create one or more servlet instance depending on which servlet model you are using. More exact information you can find behind the links. Observe the hierarchy and understand the relationship between the three involved in multilevel inheritance.
Most likely you only have to care about this one. It is also httpservvlet abstract class. As the name implies, it serves a client request and receives a response from the server.
Tutorial is just awesome. Struts is a MVC framework which is use for web development. Stop by my web page; newspaperarchive. Sign up or log in Sign up using Google.
GenericServlet can forward and include a request but we can not redirect the request. GenericServlet is protocol independent. It provides simple versions of the lifecycle methods init and destroy and of the methods in the ServletConfig interface. You might implement Servlet if you’re writing your own container or handling everything yourself.
Programmers implement Servlet interface who would like to develop their own container. Veera Reddy 24 March at Really very informative post you shared here. It is enough to the programmer to override only this method. It contains 5 abstract methods and all inherited by GenericServlet and HttpServlet. Dkfference is developed by Apache Software Foundation. GenericServlet gives a blueprint and makes writing servlet easier.