CMS专题

多选题You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()AYour filter class must implement an init method and a destroy method.BYour filter class must also implement javax

题目
多选题
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
A

Your filter class must implement an init method and a destroy method.

B

Your filter class must also implement javax.servlet.FilterChain.

C

When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.

D

The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.

E

Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.

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

第1题:

You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.Which two actions should you perform?()

A. Place a theme in the App_Themes directory under the application root directory.

B. Place a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.

C. Assign a theme by setting the <%@ Page Theme="..." %> directive to the name of the application theme.

D. Assign a theme by specifying the <pages theme="..."/> section in the Web.config file.


参考答案:B, D

第2题:

Exhibit: You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()

A. Right-click the connection, and click Properties. Modify the Provider property of the data connection.

B. Click the Change button, and change the data provider for the selected data source.

C. Click the Advanced button, and change the Data Source property to the target provider.

D. Click the Advanced button, and change the Application Name property to the target provider.


参考答案:B

第3题:

You can ask for an () lateter if you want your parents come for your graduation ceremony

A.invitation

B.introduction

C.requirement

D.application


参考答案:A

第4题:

You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()

  • A、The JAR file
  • B、A directory called lib
  • C、A directory called tags
  • D、A directory called TLDs
  • E、A directory called classes
  • F、A directory called META-INF

正确答案:B,C,E

第5题:

You have a Windows Server 2008 server that has the Web Server (IIS) server role installed. The server hosts multiple Web sites.  You need to configure the server to automatically release memory for a single Web site. You must achievethis goal without affecting the other Web sites. What should you do?()

  • A、Create a new Web site and edit the bindings for the Web site.
  • B、Create a new application pool and associate the Web site to the application pool.
  • C、Create a new virtual directory and modify the Physical Path Credentials on the virtual directory.
  • D、From the Application Pool Defaults, modify the Recycling options.

正确答案:B

第6题:

Every morning, you inspect your company‘s development and staging servers. You do this to ensure that the servers have the same versions of all files in your Web application.For security reasons, you can only access the staging server through FTP.You need to synchronize files from the staging server so that the staging server matches the development server.You want to achieve this goal by using the minimum amount of administrative effort.Which tool should you use?()

A. FTP

B. XCOPY

C. the Publish Web tool

D. the Copy Web tool


参考答案:D

第7题:

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You host the Web application in Microsoft Internet Information Services (IIS) 6.0. You browse theapplication and receive the following error message:  Server Application Unavailable  The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request.  You view the Application event log and discover the following message:  It is not possible to run two different versions of ASP.NET in the same IIS process. Please use theIIS Administration Tool to reconfigure your server to run the application in a separate process.  To ensure productivity you need to solve this problem as quick as possible.  What should you do?()

  • A、You should change the IIS isolation mode.
  • B、You should assign the application to another application pool.
  • C、You should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.
  • D、You should run the Aspnet_regiis.exe Tool.
  • E、You should restart the application pool that hosts the application.

正确答案:B,C

第8题:

You create a Web application for your company‘s intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.Which two code segments should you use?()

A.

B.

C.

D.


参考答案:B, C

第9题:

In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()

  • A、Create an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.
  • B、Create an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.
  • C、Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.
  • D、Create an HttpSessionListener class and implement the sessionCreated method with that block of code.

正确答案:D

第10题:

You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()

  • A、Your filter class must implement an init method and a destroy method.
  • B、Your filter class must also implement javax.servlet.FilterChain.
  • C、When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
  • D、The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
  • E、Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.

正确答案:A,D

更多相关问题