• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Server & Servlets

 
Friend
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.Please give me the answer for the question "What is a web server?"
2.What is the difference between HttpServlet & GenericServlet?
 
Mahesh Eshwarappa
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
sridharraju
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic