what is different between webserver and application server?

Answer Posted / priya

A Web server handles the HTTP protocol. When the Web server
receives an HTTP request, it responds with an HTTP response,
such as sending back an HTML page. To process a request, a
Web server may respond with a static HTML page or image,
send or redirect, or delegate the dynamic response
generation to some other program such as CGI scripts, JSPs
(JavaServer Pages), servlets, ASPs (Active Server Pages),
server-side JavaScripts, or some other server-side
technology. Whatever their purpose, such server-side
programs generate a response, most often in HTML, for
viewing in a Web browser.

The web server simply passes the request to the program to
handle it. The web server does not provides any
functionality beyond providing an environment in which the
server - side program can execute and pass back the
generated responses. The server-side program usually
provides such functions as transaction processing, database
connectivity and messing .

Application Server

While an application server exposes business logic to client
applications through various protocols like HTTP, TCP-IP
etc. All the web servers mainly deals with sending HTML for
displaying to a Web browser. An application server providers
allows the client to access the business logic for use. The
application server is used to run business logic or
dynamically generating presentation code. A J2EE application
server runs servlets and JSPs that are used to create HTML
pages dynamically. In this case, J2EE application server can
run EJBs ? which are used to execute business logic. An
application server is more capable of dynamic behaviour than
webserver.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is catalina?

465


Why nginx is faster than apache?

471


Is tomcat a application server?

452


with how many valves does tomcat configured with?

482


How do you create multiple virtual hosts?

468






How can one know if the apache web server is running?

452


How many database servers does facebook have?

459


What type of ip is required for apache web server to host our website?

480


Suppose when we are starting startup.bat file of tomcat server it is not started. Dos window appears for a second only. What we need to?

554


Why do I get a class not found exception when I try to use the shopping cart class?

484


How to set the context path of a web application in tomcat 7.0

445


What is the default port for tomcat?

498


Explain what is jasper?

466


What is the use of webservers?

478


What is application server examples?

454