Getting Started with Java Web Development in Eclipse and Tomcat
This is the first part of a series of Java Web development tutorials. It is intended to warm you up by introducing two fundamental Java web components, JSP and Servlet, and helping you prepare your development and deployment environments for the next steps.
Getting Started with Java Web Development in Eclipse and Tomcat - Some Web Development Related Concepts (Page 2 of 4 )
A Web container is the interface between the web components and the environment that supports the component. It manages the execution of the JSP page and Servlet components.
To simplify, you can think of JSP pages or Servlets running in a Web container just as Applets run in a web browser.
For this tutorial, we'll use Tomcat as the Servlet/JSP container. Tomcat version 5 implements the Servlet 2.4 and JavaServer Pages (JSP) 2.0 specifications as well as many other features for developing and deploying web applications.
A web application consists of web components, static resources, and dependent libraries. Unlike the stand-alone Java classes, the steps for creating, deploying, and executing a web application are more complicated.
Java web components are Servlets or Java Server Pages, JSP for short.
Servlets are Java classes running in web containers that dynamically process requests and construct responses.
JSP pages are text-based files. They have all the dynamic features of Servlets but allow you to easily create static and dynamic contents. A similar technology is ASP from Microsoft.