多项选择题Which three are guaranteed to be valid for the  element of a web application deployment descriptor?()

A. FORM
B. DIGEST
C. NORMAL
D. ENCRYPTED
E. CLIENT-CERT


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题

Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()

A. ${vals.2 }
B. ${vals ["2"]}
C. ${vals.index }
D. ${vals[index]}
E. ${vals} [index]
F. ${vals.(vals.index)}
G. ${vals[vals[index-1]]}

3.多项选择题


Which two are true?()

A. The function method must have the signaturepublic: String spin().
B. The method must be mapped to the logical name “spin” in the web.xml file.
C. The function method must have the signature:public String spinIt().
D. The function method must have the signature:public static String spin().
E. The function method must have the signature:public static String spinIT().
F. The function class must be named Spinner, and must be in the package com.example.

4.多项选择题Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()

A. ${product ID}
B. ${param.productID}
C. ${params.productID}
D. ${params.productID[1]}
E. ${paramvalues.productID}
F. ${paramValues.productID[0]}
G. ${pageContext.request.productID}

8.多项选择题Which two classes or interfaces provide a getSession method?()

A. javax.servlet.http.HttpServletRequest
B. javax.servlet.http.HttpSessionContext
C. javax.servlet.http.HttpsServletResponse
D. javax.servlet.http.HttpSessionBindingEvent
E. javax.servlet.http.HttpSessionAttributeEvent

9.多项选择题Which the three interfaces need to be declared in the web application deployment descriptor? ()

A. HttpSessionListener
B. HttpSessionBindingListener
C. HttpSessionTimedOutListener
D. HttpSessionAttributeListener
E. HttpSessionActivationListener
F. HttpSessionPassivatedListener

10.单项选择题

Given that session is a valid HttpSession object:  
Int max = session.getAttribute(“MyReallyLongName”);  
Which is true?()  

A. The value returned needs to be cast to an int.
B. The getAttribute methos takes two arguments.
C. Primitive CANNOT be stored in the HttpSession.
D. The HttpSession attribute name must NOT exceed eight characters.

最新试题

Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?

题型:单项选择题

A JSP page, current.jsp, is created to display the current weather report. The weather report is contained in a weather.html page that is rewritten every five minutes. Which line, appearing in current.jsp, ensures that the most recent version of weather.html is included whenever current.jsp is referenced?()

题型:单项选择题

Which two are true?()

题型:多项选择题

Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()

题型:多项选择题

Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()

题型:单项选择题

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?()

题型:单项选择题

Which the two are characteristics of the Service Locator pattern?()

题型:多项选择题

Which two produce the output "one, two and three"?()

题型:多项选择题

A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. This attribute holds an instance of the com.Company.  Product class with a name property of “The Matrix” and price property of 39.95. Given the JSP page code snippet:What is the response output of this JSP page code snippet? ()

题型:单项选择题

When using Form Based Authentication, which pair of fields must be used in the login form?()  

题型:单项选择题