A developer wants a web application to be notified when the 

题目
多选题
A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()
A

Include a listener directive in a JSP page

B

configure a listener in the TLD file using the  element

C

Include a  element in the web application deployment descriptor

D

configure a listener in the application deployment descriptor, using the  element

E

Include a class implementing ServletContextListener as part of the web application deploymen

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

正确答案:D

第2题:

In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()

  • A、 /WEB-INF
  • B、 /META-INF
  • C、 /WEB-INF/tlds
  • D、 /META-INF/tlds
  • E、 WEB-INF/resources
  • F、 /META-INF/resources

正确答案:A,C,E

第3题:

Which statement is true about web container session management?()

  • A、Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
  • B、To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
  • C、If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
  • D、The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

正确答案:C

第4题:

You are the desktop administrator for your company. Your company’s software developers use Windows XP Professional and IIS on their client computers to develop Web-based applications. All client computers use Microsoft Internet Explorer 6. 0 or later as their Web browser. One of the developers reports that he can no longer access the Web-based application on his desktop by using his Web browser. When you attempt to access the application by using your Web browser, you receive the following error message: “Cannot find server or DNS Error.” You verify that the World Wide Web Publishing Service is started on the developer’s computer. You also verify that you are using the correct URL to access the developer’s computer by using your Web browser. You need to ensure that the developer can access the Web application by using his Web browser. How should you configure the developer’s computer?() 

  • A、Start the default Web site.
  • B、Start the IIS Admin Service.
  • C、Run the IPconfig /registerdns command.
  • D、In the default Web site properties,disable the host header setting.

正确答案:A

第5题:

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

正确答案:D

第6题:

A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Which design pattern provides a solution for this problem?()

  • A、 Flyweight
  • B、 Transfer Object
  • C、 Service Locator
  • D、 Dispatcher View
  • E、 Business Delegate
  • F、 Model-View-Controller

正确答案:B

第7题:

A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades performance of the application. Which design pattern provides a solution for this problem?()

  • A、Flyweight
  • B、Transfer Object
  • C、Service Locator
  • D、Dispatcher View
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:B

第8题:

A customer wants to improve the availability of a web application and provide more predictable scalability when scaling out the application.    Which Feature of WebLogic should you recommend to help solve this problem?()

  • A、Oracle Web Grid
  • B、ActiveCache
  • C、Coherence Grid Edition
  • D、WebLogic Session Replication
  • E、Coherence Web Edition

正确答案:C

第9题:

You have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2). You create a new virtual directory named App1. App1 contains a Web application. Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application. You need to ensure that users can access the Web application when they connect to http://app1. What should you do? ()

  • A、Move the content of the Web application to C:/App1. Change the home directory for App1.
  • B、Move the content of the Web application to C:/App1. Change the application pool for App1.
  • C、Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.
  • D、Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.

正确答案:D

第10题:

You work as an ASP.NET Web Application Developer for SomeCompany.  The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source.  You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()

  • A、Use NextPreviousPagerField.
  • B、Use NumericPagerField.
  • C、Use PreviousPagerField.
  • D、Use NextPagerField.
  • E、Use TemplatePagerField.

正确答案:E

更多相关问题