|
|
Quiz Number 9
SWE 432, Fall 2011
November 3
|
|
Print your name on the right side of the page, above the line.
Then answer the questions as concisely as you can.
Please write neatly; if I can't read it I have to mark it wrong.
- (8 pts.) Which of the following are true about servlets?
Answer each with either a
T=true or F=false:
-
Each servlet request creates a new process on the main method for that servlet.
-
Servlets can only return HTML.
-
The servlet init() method is called each time a servlet instance is created.
-
The servlet instance is destroyed after every request.
-
Different requests to the same servlet can share variables.
-
The programmer calls the destroy() method to destroy the servlet instance.
-
Values for checkboxes are provided to servlets in arrays.
-
When a servlet calls the sendRedirect() method, sendRedirect() executes, then returns to the original servlet.
- (2 pts.) How can a servlet provide the same behavior for both GET and POST requests?
© Jeff Offutt, 2001-2011, all rights reserved.
This document is made available for use by GMU students of SWE 432.
Copying, distribution or other use of this document
without express permission of the author is forbidden.
You may create links to pages in this web site,
but may not copy all or part of the text without permission
of the author.