A Company.com developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, because the business and resource tiers are distributed, the application needs to minimize the inter-tier network traffic related to servicing client requests.
Which design patterns, working together, address these issues?()
A. Front Controller and Transfer Object
B. Front Controller and Service Locator
C. Business Delegate and Transfer Object
D. Business delegate and Intercepting Filter
E. Model-View-Controller and Intercepting Filter
您可能感兴趣的试卷
你可能感兴趣的试题
A Company.com developer is designing the presentation tier for a web application that relies on a complex session bean. The session bean is still being developed and the APIs for are NOT finalized. Any changes to the session bean API directly impacts the development of the presentation tier.
Which design pattern provides a means to manage the uncertainty in the API?()
A. View Helper
B. Front Controller
C. Composite View
D. Intercepting Filter
E. Business Delegate
F. Chain of Responsibility
A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner.
Which two can support this design goal?()
A. Store the data in a local variable.
B. Store the data in an instance variable.
C. Store the data in the HttpSession object.
D. Store the data in the ServletContext object.
E. Store the data in the ServletRequest object.
A. put(String name. Object value)
B. set(String name. Object value)
C. setAttribute(String name. Object value)
D. putAttribute(String name. Object value)
E. addAttribute(String name. Object value)
B. <filters>
C. <servlet>
D. <filter-list>
Which retrieves the value associated with “foo” from within an HttpServlet?()
A. String value = getServletConfig( ).getParameter(“foo”);
B. String value = getServletContext( ).getAttribute(“foo”);
C. Object value = getServletContext( ).getInitParameter(“foo”);
D. String value = getServletContext( ).getInitParameter(“foo”)
What is the result of a client request of the Source servlet with no query string?()
A. The output “filterAdded = null” is written to the response stream.
B. The output “filterAdded = addedByFilter” is written to the response stream.
C. An exception is thrown at runtime within the service method of the Source servlet.
D. An exeption is thrown at runtime within the service method of the Destination servlet.
A. response.getWriter( )
B. response.getOutputStream( )
C. response.getOutputWriter( )
D. response.getWriter( ) .getOutputStream( )
E. response.getWriter(Writer.OUTPUT_TEXT( )
What is the result?()
A. <b></b>
B. <b>50</b>
C. <b>${5*10}</b>
D. The JSP fails to execute
A. within a method called jspInit
B. within the page directive of the JSP page
C. within a scriptlet at the top of the JSP page
D. within the
Which two successfully translate and result in a value of true?()
A. ${true or false}
B. ${requestScope[foo][0] > 500}
C. ${requestScope[“foo”][1] = 420}
D. ${(requestScope[“foo”][0] lt 50) && (3 gt 2)
最新试题
Which code snippet, inserted at line 8, causes the value Company to be output?()
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()
Which two authentication mechanisms provide weaker protection than other mechanisms?()
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?()
When using Form Based Authentication, which pair of fields must be used in the login form?()
Within the web application deployment descriptor, which defines a valid JNDI environment entry()
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()
Which path, relative to a web application’s root, identifies the web application’s 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?()