This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1)Webserver is the one which serves the webpages. It can be HTML,DHTML,ASP,JSP,PHP etc... A Webserver hosts the websites. 2)An Http servlet extends HttpServlet class and involves HTTP protocol. It is used to serve Http related requests and generate Http Response. A Generic servlet can help in implementing any other protocol for example FTP also Like the class hierarchy is Generic Servlet HttpServlet extends this Generic Servlet Mahesh
Originally posted by jyotsna varma: 1.Please give me the answer for the question "What is a web server?" 2.What is the difference between HttpServlet & GenericServlet?
1.Webserver is a server which can take request from user process it and sends back the response. It can handle multiple requests. 2.HttpServelt is a class and it can work with http protocol. where as genericservlet is a also class but it can work with any other protocols. some methods and functionalities we dont have in generic servlet which we have in the httpservlet ex- doget,dopost.etc.