单项选择题


To implement the design intent, which statement must be inserted at line 42?()

 

A. session = response.getSession();
B. session = request.getSession();
C. session = request.getSession(true);
D. session = request.getSession(false);
E. session = request.getSession(“jsessionid”);


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题Given that a scoped attribute cart exists only in a user’s session, which two, taken independently, ensure the scoped attribute cart no longer exists?()

A. ${cart = null} 
B. <c:remove var="cart" /> 
C. <c:remove var="${cart}" /> 
D. <c:remove var="cart" scope="session" /> 
E. <c:remove scope="session">cart</c:remove> 
F. <c:remove var="${cart}" scope="session" /> 
G. <c:remove scope="session">${cart}</c:remove>

3.单项选择题Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()

A. javax.servlet.http.HttpSessionListener
B. javax.servlet.http.HttpSessionValueListener
C. javax.servlet.http.HttpSessionBindingListener
D. javax.servlet.http.HttpSessionAttributeListener

5.多项选择题Which three are valid values for the body-content attribute of a tag directive in a tag file? ()

A. EL
B. JSP
C. empty
D. dynamic
E. scriptless
F. tagdependent

最新试题

Assume session is an HttpSession, and is not referenced anywhere else in ServletA. Which two changes, taken together, ensure that value is equal to “Hello” on line 23? ()

题型:多项选择题

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

题型:多项选择题

The tag handler for n:recurse extends SimpleTagSupport.Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?()  

题型:单项选择题

Which the two are valid and equivalent?()

题型:多项选择题

Given the HttpServlet code:  getServletContext().setAttribute(“foo”, “value”);What is the result?()

题型:单项选择题

Which the three are true about servlet filters?()

题型:多项选择题

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

题型:单项选择题

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

题型:单项选择题

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

题型:多项选择题

Which two are true?()

题型:多项选择题