多选题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?()AInclude a listener directive in a JSP pageBconfigure a listener in the TLD file using the  elem

题目
多选题
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


相似考题

2. Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

参考答案和解析
正确答案: D,B
解析: 暂无解析
更多“多选题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?()AInclude a listener directive in a JSP pageBconfigure a listener in the TLD file using the  elem”相关问题
  • 第1题:

    Which two tasks are required to install Service Integration Bus Web Services?()

    • A、install the Resource Adapter
    • B、configure SOAP listener port
    • C、deploy the Service Integration Bus application
    • D、install the Service Data Objects (SDO) Repository
    • E、create a new WebSphere Application Server profile

    正确答案:A,D

  • 第2题:

    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

  • 第3题:

    You were recently hired by Certkiller .com as a database administrator. You are asked to find out whether the currently functional listener process, named L1, has been password protected or not. You are not familiar with the file system of the new organization. How would you accomplish the task?()

    • A、 by using the STATUS command of the Listener control utility
    • B、 by using the STATUS L1 command of the Listener control utility
    • C、 by using the SHOW RULES command of the Listener control utility
    • D、 by using the SET PASSWORD command of the Listener control utility
    • E、 by searching for the PASSWORD_LISTENER entry in the listener.ora file

    正确答案:B

  • 第4题:

    In a shared server configuration, which two describe the actions that the listener can take to service a client request?()

    • A、The listener hands the connection request directly to a dispatcher. 
    • B、A dedicated server inherits the connection request from the listener. 
    • C、The client connects to a dedicated server directly using a protocol address provided by the listener. 
    • D、The application initiating the session spawns a dedicated server process for the connection request. 
    • E、The listener issues a redirect message to the client, containing the protocol address of a dispatcher. The client then terminates the network session to the listener and establishes a network session to the dispatcher, using the network address provided in the redirect message. 

    正确答案:A,E

  • 第5题:

    You are developing an application that receives events asynchronously.You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond.You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously.Which two actions should you perform?()

    • A、Start listening for events by calling the Start method of the ManagementEventWatcher.
    • B、Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.
    • C、Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.
    • D、Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.
    • E、Set up a listener for events by using the Stopped event of the ManagementEventWatcher.

    正确答案:A,B

  • 第6题:

    多选题
    Which two tasks are required to install Service Integration Bus Web Services?()
    A

    install the Resource Adapter

    B

    configure SOAP listener port

    C

    deploy the Service Integration Bus application

    D

    install the Service Data Objects (SDO) Repository

    E

    create a new WebSphere Application Server profile


    正确答案: C,D
    解析: 暂无解析

  • 第7题:

    多选题
    A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1. 3. The sort.jsp page is requested. Which two are true?()
    A

    Tag files can only be accessed using a tagdir attribute.

    B

    The sort.jsp page translates successfully and invokes the tag defined by beta.tag.

    C

    The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.

    D

    Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.

    E

    The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.


    正确答案: A,B
    解析: 暂无解析

  • 第8题:

    多选题
    You are developing an application that receives events asynchronously. You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond. You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously. Which two actions should you perform?()
    A

    Start listening for events by calling the Start method of the ManagementEventWatcher.

    B

    Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.

    C

    Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.

    D

    Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.

    E

    Set up a listener for events by using the Stopped event of the ManagementEventWatcher.


    正确答案: A,C
    解析: 暂无解析

  • 第9题:

    单选题
    You were recently hired by an organization as a database administrator. You are asked to find out whether the currently functional listener process, named L1, has been password protected or not. You are not familiar with the file system of the new organization. How would you accomplish the task?()
    A

    by using the STATUS command of the Listener control utility

    B

    by using the STATUS L1 command of the Listener control utility

    C

    by using the SHOW RULES command of the Listener control utility

    D

    by using the SET PASSWORD command of the Listener control utility

    E

    by searching for the PASSWORD_LISTENER entry in the listener.ora file


    正确答案: E
    解析: 暂无解析

  • 第10题:

    单选题
    To take advantage of the capabilities of modern browsers that use web standards, such as XHTML andCSS, your web application is being converted from simple JSP pages to JSP Document format. However,one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11.  14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()
    A

    <%@ page contentType=’application/javascript’ %>

    B

    <jsp:page contentType='application/javascript' />

    C

    <jsp:document contentType='application/javascript' />

    D

    <jsp:directive.page contentType='application/javascript' />

    E

    No declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the <script> tag.


    正确答案: B
    解析: 暂无解析

  • 第11题:

    多选题
    In a shared server configuration, which two describe the actions that the listener can take to service a client request?()
    A

    The listener hands the connection request directly to a dispatcher.

    B

    A dedicated server inherits the connection request from the listener.

    C

    The client connects to a dedicated server directly using a protocol address provided by the listener.

    D

    The application initiating the session spawns a dedicated server process for the connection request.

    E

    The listener issues a redirect message to the client, containing the protocol address of a dispatcher. The client then terminates the network session to the listener and establishes a network session to the dispatcher, using the network address provided in the redirect message.


    正确答案: C,D
    解析: 暂无解析

  • 第12题:

    单选题
    You want your listener to be password protected to prevent it from being shut down. You want to accomplish this task while the listener is functional. Which method could you use to achieve this objective?()
    A

     Use the CHANGE_PASSWORD command of the Listener control utility.

    B

     Use the SET PASSWORD and SAVE_CONFIG commands of the Listener control utility.

    C

     Use the CHANGE_PASSWORD and SAVE_CONFIG commands of the Listener control utility.

    D

     Manually modify the listener.ora file to include the password for the listener and restart the listener.


    正确答案: B
    解析: 暂无解析

  • 第13题:

    A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1.<%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" %> 3. The sort.jsp page is requested. Which two are true?()

    • A、Tag files can only be accessed using a tagdir attribute.
    • B、The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
    • C、The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.
    • D、Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.
    • E、The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

    正确答案:B,E

  • 第14题:

    Which the two about WAR files are true?()

    • A、 WAR files must be located in the web application library directory.
    • B、 WAR files must contain the web application deployment descriptor.
    • C、 WAR files must be created by using archive tools to designed specifically for that purpose. 
    • D、 The web container must serve the content of any META-INF directory located in a WAR file.
    • E、 The web container must allow access to resources in JARs in the web application library directory

    正确答案:B,E

  • 第15题:

    You want your listener to be password protected to prevent it from being shut down. You want to accomplish this task while the listener is functional. Which method could you use to achieve this objective?()

    • A、 Use the CHANGE_PASSWORD command of the Listener control utility.
    • B、 Use the SET PASSWORD and SAVE_CONFIG commands of the Listener control utility.
    • C、 Use the CHANGE_PASSWORD and SAVE_CONFIG commands of the Listener control utility.
    • D、 Manually modify the listener.ora file to include the password for the listener and restart the listener.

    正确答案:C

  • 第16题:

    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

  • 第17题:

    You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()

    • A、Modify the application settings by using the Web Site Administration Tool.
    • B、Modify the application settings by using the Visual Studio property page editor for the project.
    • C、Modify the application settings by using the resource editor.
    • D、Modify the application settings by using the Visual Studio start options editor.

    正确答案:A

  • 第18题:

    多选题
    Which the two about WAR files are true?()
    A

    WAR files must be located in the web application library directory.

    B

    WAR files must contain the web application deployment descriptor.

    C

    WAR files must be created by using archive tools to designed specifically for that purpose.

    D

    The web container must serve the content of any META-INF directory located in a WAR file.

    E

    The web container must allow access to resources in JARs in the web application library directory


    正确答案: D,C
    解析: 暂无解析

  • 第19题:

    单选题
    A JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element withinthe web application deployment descriptor defines the associated TLD?()
    A

    <tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>

    B

    <taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>. </taglib>

    C

    <tld>. <tld-uri>dbtags</tld-uri>. <tld-location>/WEB-INF/tlds/dbtags.tld</tld-location> . </tld>

    D

    <taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld. </taglib-location>. </taglib>


    正确答案: D
    解析: 暂无解析

  • 第20题:

    多选题
    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.


    正确答案: C,D
    解析: 暂无解析

  • 第21题:

    多选题
    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.


    正确答案: E,A
    解析: 暂无解析

  • 第22题:

    多选题
    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


    正确答案: A,B
    解析: 暂无解析

  • 第23题:

    多选题
    Which two actions protect a resource file from direct HTTP access within a web application?()
    A

    Placing it in the /secure directory

    B

    Placing it in the /WEB-INF directory

    C

    Placing it in the /META-INF/secure directory

    D

    Creating a  element within the deployment descriptor


    正确答案: C,B
    解析: 暂无解析