SCWCD(310-083)

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

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

第1题:

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.

正确答案:B

第2题:

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

第3题:

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

第4题:

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

第5题:

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

第6题:

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.

正确答案: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.<%@ 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

第8题:

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

正确答案:D,E

第9题:

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

第10题:

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

更多相关问题