Chapter 11
Servlets and Java
Server Pages
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-2
TABLE 11.1
Commonly Used Methods of HttpServlet
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-3
FIGURE 11.1 Display of tstGreet.html
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-4
FIGURE 11.2
The response from the Greeting servlet
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-5
FIGURE 11.3 Display of conelec2.html
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-6
FIGURE 11.4
Results of the Survey servlet
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-7
FIGURE 11.5 Display of ballot.html
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-8
FIGURE 11.6 The output of the
VoteCounter servlet for a form with no vote
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-9
FIGURE 11.7 The output of VoteCounter for
a form with a second vote from the same client
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-10
FIGURE 11.8 The output of VoteCounter
for a form with a legitimate vote
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.
11-11
FIGURE 11.9 A listing of the initial version
of tempconvert3.jsp
Copyright © 2006 Pearson Addison-Wesley. All rights reserved.