November 2003
Intermediate to advanced
1488 pages
36h 35m
English
The most common use of servlets is for handling HTTP requests in Web and application servers. Now we'll look at using the functions we discussed in the last section. We'll also build on the first servlet we created in the chapter.
Table 14.1 lists all the methods that are available in an HttpServlet interface for handling different types of requests. But the most used are the doPost() and the doGet() methods, which handle the servlet requests via the service method. Listing 14.4 shows a skeleton of a simple HTTP servlet that can handle both GET and POST requests. In the next section of the chapter, we develop a simple servlet based on this skeleton to convert a given string to its uppercase equivalent. ...
Read now
Unlock full access