单项选择题When using a form-based authentication, which action must be used in the login form?()

A. j_login
B. j_get_user
C. j_login_check
D. j_get_security
E. j_security_check


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题Which two pieces of information are needed when declaring the web resource collection in the deployment descriptor?()

A. the URL pattern that requires authorization
B. the HTTP methods that require authorization
C. the users allowed access to the web resource
D. the J2EE roles allowed access to the web resource
E. the authentication mechanism required by the web resource

2.多项选择题Which two security mechanisms protect the response stream?()

A. authorization
B. data integrity
C. confidentiality
D. authentication

3.单项选择题In form-based authentication, what must be included in the HTML returned from the URL specified by the  element?()

A. a base-64 encoded user name and password
B. a form that POSTs to the j_security_check URL
C. an applet that requests the user name and password from the user
D. a hidden field that supplies the login-constraint used by the application

5.单项选择题For a given ServletResponse response, which retrieves an object for writing binary data?()

A. response.getWriter()
B. response.getOutputStream()
C. response.getOutputWriter()
D. response.getWriter().getOutputSTream()
E. response.getWriter(Writer.OUTPUT_BINARY)

7.单项选择题Given an HttpServletRequest request, which retrieves an object of type Account with an Id of “account”?()

A. Account account = request.get Resource(”account”):
B. Account account = request.get Attribute (“account”):
C. Account account = request.get Parameter (account”):
D. Account account = (Account)request.getResource (“account”):
E. Account account = (Account) request.get Attribute (“account”):
F. Account account = (Account) request.get Paramter (“account”):

8.单项选择题


What is the result?()

A. Compilation succeeds.
B. An error at line 2 cause compilation to fail.
C. An error at line 9 cause compilation to fail.
D. An error at line 10 cause compilation to fail.
E. An error at line 11 cause compilation to fail.

9.单项选择题


What is the result?()

A. The program runs and prints “Hello”
B. An error causes compilation to fail.
C. The program runs and prints “Hello world!”.
D. The program runs but aborts with an exception.

10.单项选择题


What is the result?()

A. foo has the value””
B. foo has the value null.
C. An exception is thrown.
D. The code will not compile.

最新试题

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

题型:单项选择题

Which two authentication mechanisms provide weaker protection than other mechanisms?()

题型:多项选择题

Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

题型:单项选择题

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

题型:多项选择题

Which two classes or interfaces provide a getSession method?()

题型:多项选择题

Which the two are valid and equivalent?()

题型:多项选择题

Which three are guaranteed to be valid for the  element of a web application deployment descriptor?()

题型:多项选择题

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

题型:单项选择题

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

题型:单项选择题

Within the web application deployment descriptor, which defines a valid JNDI environment entry()

题型:单项选择题