Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 83757 invoked from network); 21 May 2003 17:41:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 May 2003 17:41:20 -0000 Received: (qmail 9234 invoked by uid 97); 21 May 2003 17:43:30 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 9227 invoked from network); 21 May 2003 17:43:30 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 21 May 2003 17:43:30 -0000 Received: (qmail 82930 invoked by uid 500); 21 May 2003 17:41:10 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 82916 invoked from network); 21 May 2003 17:41:10 -0000 Received: from s1.servlets.net (209.221.135.4) by daedalus.apache.org with SMTP; 21 May 2003 17:41:09 -0000 Received: from gefionsoftware.com (lsanca1-ar6-4-62-204-107.lsanca1.elnk.dsl.genuity.net [4.62.204.107]) by s1.servlets.net (8.11.6/8.9.3) with ESMTP id h4LHfAw04616 for ; Wed, 21 May 2003 10:41:10 -0700 Message-ID: <3ECBBA2E.1000303@gefionsoftware.com> Date: Wed, 21 May 2003 10:41:02 -0700 From: Hans Bergsten User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, sv MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Help: Servlet container vs JSP container vs servlet engine vs JSP engine References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N henrik.bentel@teradyne.com wrote: > ok, so I thought I had a pretty good understanding of how it all works. > But then the more different documentation, books and articles I read, the > less sure I get about this one(read subject) > > The way I see it: > 1. A servlet/and JSP container contains a Servlet and JSP engine. > 2. Servlet engine "runs" servlet and JSP engine "runs" JSPs(catalina and > Jasper 2). > 3. When a servlet forwards to a different resource such as a JSP, it the > task of the servlet/JSP container help doing this(not the engines). > 4. A JSP container can't exist without being a servlet container, but a > servlet container can exist without supporting JSPs(Its a servlet container > or both). > 5. A JSP engine could exist without a servlet container and a servlet > engine. > > The words engine and container is used interchangably all over the place. > The official specs tend to only refer to containers, saying JSP run in the > servlet container(since JSP are really just servlets, although a special > kind). In tomcat documentation cataline is referred to as both the > container and an engine. Is it one or both?? Which is what and what is > where and where is which?!? > > Hope someone can shed some light on this In general, "engine" is the old term for what's now called a "container" (renamed when the servlet and JSP specs got included in the J2EE umbrella spec). The servlet spec describes the "servlet container", the JSP spec the "JSP container"; together these two containers are also referred to as the "web container". The "engine" term has a special meaning in Catalina. It's a container for a Service, handling all requests directed to one or more Connectors for the Service, see the Tomcat 4 docs for more info: In many books and articles, the terms "engine" and "container" (with the prefixes "servlet", "JSP" or "web") are often used interchangably, as you have noticed. Hans -- Hans Bergsten Gefion Software Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0 Details at --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org