Your web application uses a simple architecture in which ser

题目
多选题
Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()
A

Add attributes to the session object.

B

Add attributes on the request object.

C

Add parameters to the request object.

D

Use the pageContext object to add request attributes.

E

Add parameters to the JSP’s URL when generating the request dispatcher.

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

第1题:

What is meant by the term "firewall sandwich"?()

  • A、multiple layers of firewalling
  • B、a method of operating firewalls from multiple vendors
  • C、firewall connections in either an active or standby state
  • D、an architecture in which all traffic between firewalls goes through application-specific servers
  • E、an architecture in which all traffic between firewalls goes through application-specific gateways

正确答案:A

第2题:

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

第3题:

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

第4题:

You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server. From which base type should your custom event type inherit? ()

  • A、IWeb Event Custom Evaluator
  • B、Web Event Provider
  • C、Web Base Event
  • D、Web Audit Event

正确答案:C

第5题:

You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

正确答案:D

第6题:

Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()

  • A、Add attributes to the session object.
  • B、Add attributes on the request object.
  • C、Add parameters to the request object.
  • D、Use the pageContext object to add request attributes.
  • E、Add parameters to the JSP’s URL when generating the request dispatcher.

正确答案:B,E

第7题:

Your web application requires the ability to load and remove web files dynamically to the web container’s filesystem. Which two HTTP methods are used to perform these actions?()

  • A、PUT
  • B、POST
  • C、SEND
  • D、DELETE
  • E、REMOVE

正确答案:A,D

第8题:

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

第9题:

Your company has an internal Web application that uses a self-signed SSL certificate.  The company has an internal certification authority (CA) with autoenrollment.When users attempt to start the Web application, Internet Explorer displays an error message that recommends closing the Web page rather than continuing to the application.    You need to ensure that Internet Explorer does not display the error message.   What should you do?()

  • A、Issue a certificate from the internal CA and install it on the application server
  • B、Install the Web application’s certificate into the computer store on each client computer
  • C、Install the Web application’s certificate into the personal store on each client computer. Add the application’s URL to the Trusted Sites zone in Internet Explorer
  • D、Purchase a commercial certificate and install it on the internal CA

正确答案:A

第10题:

Your network contains a Windows Server 2008 server that has the Web Server (IIS) server role installed.  You have a Web application that uses a custom application pool. The application pool is set to recycle every 1,440 minutes. The Web application does not support multiple worker processes.  You need to configure the application pool to ensure that users can access the Web application after the application pool is recycled. What should you do?()

  • A、Set the Shutdown Executable option to True.
  • B、Set the Process Orphaning Enabled option to True.
  • C、Set the Disable Overlapped Recycling option to True.
  • D、Set the Disable Recycling for Configuration Changes option to True.

正确答案:C

更多相关问题