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??.

Author: Tojall Bagal
Country: Benin
Language: English (Spanish)
Genre: Marketing
Published (Last): 7 October 2004
Pages: 397
PDF File Size: 1.5 Mb
ePub File Size: 5.23 Mb
ISBN: 471-4-44391-191-8
Downloads: 26525
Price: Free* [*Free Regsitration Required]
Uploader: JoJozragore

HttpServlet is protocol dependent. When it comes to the Spring Framework and Java, Dinesh tops the list! HttpServlet is protocol dependent. Sign up using Email and Password. By using our site, snd acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Similar Threads

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.

  6AV6 644-0AA01-2AX0 PDF

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.