Stephanie Bodoff
In This Chapter
What is a Servlet?
The Example Servlets
Servlet Life Cycle
Sharing Information
Initializing a Servlet
Writing Service Methods
Filtering Requests and Responses
Invoking Other Web Resources
Accessing the Web Context
Maintaining...
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model. Although...
This chapter uses the Duke's Bookstore application to illustrate the tasks involved in programming servlets. Table lists the servlets that handle each bookstore function. Each...
After the Web container loads and instantiates the servlet class and before it delivers requests from clients, the Web container initializes the servlet. You can...
The service provided by a servlet is implemented in the service method of a GenericServlet, the doMethod
methods (where Method
can take the value Get, Delete,...
Web components can invoke other Web resources in two ways: indirect and direct.
A Web component indirectly invokes another Web resource when it embeds a URL...
The context in which Web components execute is an object that implements the ServletContext interface. You retrieve the Web context with the getServletContext method. The...
Many applications require a series of requests from a client to be associated with one another. For example, the Duke's Bookstore application saves the state...
When a servlet container determines that a servlet should be removed from service (for example, when a container wants to reclaim memory resources, or when...
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.