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”);
您可能感兴趣的试卷
你可能感兴趣的试题
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>
Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism and outputs the message "File not found" in the response?()
A.A
B.B
C.C
D.D
E.E
A. javax.servlet.http.HttpSessionListener
B. javax.servlet.http.HttpSessionValueListener
C. javax.servlet.http.HttpSessionBindingListener
D. javax.servlet.http.HttpSessionAttributeListener
A. EL
B. JSP
C. empty
D. dynamic
E. scriptless
F. tagdependent
A developer is designing a web application that must support multiple interfaces, including:
• an XML web service for B2B
• HTML for web-based clients
• WML for wireless customers
Which design pattern provides a solution for this problem?()
A. Session Façade
B. Business Delegate
C. Data Access Object
D. Model-View-Controller
E. Chain of Responsibility
A. Business Delegate and Transfer Object
B. Business Delegate and Service Locator
C. Front Controller and Business Delegate
D. Intercepting Filter and Transfer Object
E. Model-View-Controller and Intercepting Filter
Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.
Which pattern can the developer use to solve this problem?()
A. Transfer Object
B. Service Locator
C. Intercepting Filter
D. Business Delegate
A. Flyweight
B. Transfer Object
C. Service Locator
D. Dispatcher View
E. Business Delegate
F. Model-View-Controller
A. Transfer Object
B. Service Locator
C. Front Controller
D. Intercepting Filter
E. Business Delegate
F. Model-View-Controller
![](https://static.ppkao.com/ppmg/img/appqrcode.png)
最新试题
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?()