aspose file tools*
The moose likes Servlets and the fly likes Web Server & Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Web Server & Servlets" Watch "Web Server & Servlets" New topic
Author

Web Server & Servlets

Friend
Ranch Hand

Joined: Nov 23, 2000
Posts: 67
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

Joined: Jan 04, 2001
Posts: 28
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

Joined: Jan 10, 2001
Posts: 4
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.

------------------
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web Server & Servlets
 
Similar Threads
Basic Doubt
Wireless Toolkit and proxy
difference bet weblogic & tomcat
what server is used inside the weblogic web server?
App Servers and Web Servers