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.
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
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.