FACTOID # 2: Andorra has no unemployment, which is just as well because they have no broadcast TV channels either. What would everyone watch?
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RELATED ARTICLES
People who viewed "Servlet" also viewed:
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Servlet

The Java Servlet API allows a software developer to add dynamic content to a web server using the Java platform. The generated content is commonly HTML, but may be other data such as XML. Servlets are the Java counterpart to dynamic web content technologies such as CGI or ASP. However, unlike CGI, (but like PHP), it has the ability to maintain state after many server transactions. This is done using HTTP Cookies, session variables or URL rewriting.


The Servlet API defines the expected interactions of a web container and a servlet. A web container is essentially the component of a web server that interacts with the servlets. The web container is responsible for mapping a URL to a particular servlet and ensuring that the URL requester has the correct access rights.


A servlet is an object that receives requests and generates a response based on the request. The API defines HTTP subclasses of the generic servlet requests and responses as well as an HTTP session object that tracks multiple requests and responses between the web server and a client. Servlets may be packaged as a Web application.


Moreover, servlets can be generated automatically by Java Server Pages (JSP), or alternately by template engines such as WebMacro. Often servlets are used in conjunction with JSPs in a pattern called "Model 2", which is a flavor of the Model/View/Controller pattern.

Contents

Web containers

Like the other Java APIs, different vendors provide their own implementation. Below is a list of some of the free and commercial web containers. (Note that 'free' means that commericial use is free. Some of the commercial containers, e.g. Resin and Orion, make ideal development containers and are also free to use in a server environment for non-profit organizations).


Non-commercial web containers

  • Jakarta Tomcat is an open source web container available free of charge under the Apache Software License. It is used in the official reference implementation and has a reputation for being stable.
  • Jetty
  • Java Mini Daemon contains a higher abstraction than servlets.
  • Enhydra [1] (http://www.enhydra.org)
  • jo! [2] (http://www.tagtraum.com)

Commercial web containers

Commercial open source containers

External links


  Results from FactBites:
 
Java Servlet - Wikipedia, the free encyclopedia (380 words)
Servlets are the Java counterpart to dynamic web content technologies such as CGI or ASP.
A servlet is an object that receives requests and generates a response based on the request.
Often servlets are used in conjunction with JSPs in a pattern called "Model 2", which is a flavor of the model-view-controller pattern.
PreciseJava.com - Best practices to improve performance in Servlets (2683 words)
Servlet is loaded into the memory by Servlet Engine and it calls init() method on first request and then onwards only service() method is called for every other request by creating a separate thread for each request and finally destroy() method is called when the Servlet is removed by the Servlet Engine.
Servlet engine creates a separate thread for every request and assigns that thread to service() method in its multithreaded servlet and finally it removes that thread after completion of service() method execution.
Servlet engine creates pool of threads at start up and assigns a thread from pool to every request instead of creating a fresh thread every time and it returns that thread to the pool after completion.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.