Servlets are pieces of JavaTM source
code that add functionality to a web server in a manner similar to the
way applets add functionality to a browser. Servlets are designed to
support a request/response computing model that is commonly used in web
servers. In a request/response model, a client sends a request message
to a server and the server responds by sending back a reply message.
From the Java Servlet Development Kit (JSDK), you use the Java Servlet
API to create servlets for responding to requests from clients. These
servlets can do many tasks, like process HTML forms with a custom servlet
or manage middle-tier processing to connect to existing data sources
behind a corporate firewall. In addition, servlets can maintain services,
like database sessions, between requests to manage resources better than
Common Gateway Interface (CGI) technologies.
The Java Servlet API is based on several Java interfaces that are provided
in standard Java extension (javax
) packages.
In this course you will:
- Learn how to use the Java Servlet API
- Create and run a servlet with the JSDK
- Install a servlet in Sun's Java Web
ServerTM
- Process parameters from HTML forms
- Manage middle-tier processing