aspose file tools*
The moose likes Servlets and the fly likes Difference between servlets and webs erver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Difference between servlets and webs erver" Watch "Difference between servlets and webs erver" New topic
Author

Difference between servlets and webs erver

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I would like to know difference between servlets(servletrunner) and web server ?
Can servlet programs replace a web server ? If so what are activities that offered by web server cannot be implemented through servlets?
I think without using webserver it is possible to invoke a servlet (when servletrunner is running by using port 8080) ?
So what is the difference between a servlet and web server ?
thanx in advance.
Sankar S
Bryan Welch
Ranch Hand

Joined: Jan 13, 2000
Posts: 32
As I understand it, a servlet functions as this:
html <---> web server <---> application server (running servlets)
an HTTP message is sent to a web server, and the web server interprets the message and when appropriate turns over control to a servlet. For a servlet, you need a system that can execute the program being called, be it Perl, Java, or whatever.
So the short answer is that you must have a web server. In some cases, however, the web server and application server may be the same machine. Why would they be separate machines? What if your servlet crashes the system? It's better to keep the web server alive and your site up.

----<br />Bryan Welch<br />bwelch42@yahoo.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between servlets and webs erver