单项选择题

Within a web application deployment descriptor, which maps the com.example.LoginServlet servlet to /utils/LoginServlet?()

A.A
B.B
C.C
D.D


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题


Which three EL expressions, inserted at line 16, are valid and evaluate to “d”? ()

A. ${map.c}
B. ${map[c]}
C. ${map[“c”]}
D. ${map.map.b}
E. ${map[map.b]}
F. ${map.map(map.b)}

2.单项选择题Given an EL function foo, in namespace func, that requires a long as a parameter and returns a Map, which two are valid invocations of function foo?()

A. ${func(1)}
B. ${foo:func(4)}
C. ${func:foo(2)}
D. ${foo(5):func}
E. ${func:foo(“easy”)}
F. ${func:foo(“3”).name}

3.单项选择题


What is the result?()

A. true true
B. false true
C. false true 0
D. true true Infinity
E. false true Infinity
F. An exception is thrown.
G. Compilation or translation fails

4.单项选择题Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome <%= login.getName() %>Which is equivalent?()

<%>A. Welcome <% out.print(login.getName()); %> 
B. Welcome <% writer.print(login.getName()); %> 
C. Welcome <% response.out.print(login.getName()); %>
D. Welcome <% response.writer.print(login.getName()); %> 
E. Welcome <% response.getOutputStream().write(login.getName()); %>

5.单项选择题


Which is equivalent?()
 

A.A
B.B
C.C
D.D
E.E

6.单项选择题


What is the result?()  

A. An error occurs during page translation.
B. Translation is successful, but nothing is included in the response.
C. Both “10 x 5 = 50” and “2 * 3 = 6” are included in the JSP response.
D. The text “10 x 5 = 50” is included in the JSP response, but “2 * 3 = 6” is NOT.
E. The text “2 * 3 = 6” is included in the JSP response, but “10 x 5 = 50” is NOT.

7.多项选择题Which three occur during JSP page translation?()

A. The jspInit method is called.
B. The JSP page implementation class is created.
C. The JSP page implementation class is compiled.
D. The JSP page is validated for syntatic correctness.
E. The associated tag files are validated for syntatic correctness.

8.单项选择题Which element of a web application deployment descriptor  element is required()?

A. <realm-name> 
B. <auth-method> 
C. <security-role> 
D. <transport-guarantee> 
E. <web-resource-collection>

9.单项选择题Which security mechanism is employed only on the server-side to limit access to resources or components?()

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

10.单项选择题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

最新试题

Which the three interfaces need to be declared in the web application deployment descriptor? ()

题型:多项选择题

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

题型:多项选择题

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

题型:单项选择题

A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()  

题型:单项选择题

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

题型:单项选择题

Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()

题型:单项选择题

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 statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?

题型:单项选择题

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

题型:单项选择题

Which the JSTL code snippet can be used to import content from another web resource?()

题型:单项选择题