All URLs returned by the server are rewritten.
An HttpSession object is created if necessary.
The user name and password of the user are checked.
The session ID is stored in the HTTP response as a cookie.
第1题:
A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()
第2题:
Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()
第3题:
A.A finalizer may NOT be invoked explicitly.
B.The finalize method declared in class Object takes no action.
C.super.finalize()is called implicitly by any over riding finalize method.
D.The finalize method for a given objec twill be called no more than once by the garbage collector.
E.The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.
第4题:
Which of the following statements about variables and scope are true?()
第5题:
Upon a user’s first visit to the website, which two operations are always performed when the getSession method is called with no arguments in a servlet?()
第6题:
In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()
第7题:
Which is the true choice about the web container request processing model()?
第8题:
Which two prevent a servlet from handling requests.?()
第9题:
Two new servers are purchased and need to be installed to allow sharing of a single external hard drive enclosure. One server is configured as a local file server, and the other as a database server for a different network. The onsite technician notices that when both servers are running at the same time, they each receive SCSI errors. When they are running individually, no errors are reported. Which of the following is the BEST source of information to use for troubleshooting this problem?()
第10题:
Which two classes or interfaces provide a getSession method?()