网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
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>


参考答案

参考解析
解析: 暂无解析
更多 “单选题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 tlduridbtags/urilocation/WEB-INF/tlds/dbtags.tld/location/tldB tagliburidbtags/urilocation/WEB-INF/tlds/dbtags.tld/location. /taglibC tld. tld-uridbtags/tld-uri. tld-location/WEB-INF/tlds/dbtags.tld/tld-location . /tldD taglibtaglib-uridbtags/taglib-uritaglib-location/WEB-INF/tlds/dbtags.tld. /taglib-location. /taglib” 相关考题
考题 AJSPpagecontainsataglibdirectivewhoseuriattributehasthevaluedbtags.WhichXMLelementwithinthewebapplicationdeploymentdescriptordefinestheassociatedTLD?() A.tlduridbtags/urilocation/WEB-INF/tlds/dbtags.tld/location/tldB.tagliburidbtags/urilocation/WEB-INF/tlds/dbtags.tld/location./taglibC.tld.tld-uridbtags/tld-uri.tld-location/WEB-INF/tlds/dbtags.tld/tld-location./tldD.taglibtaglib-uridbtags/taglib-uritaglib-location/WEB-INF/tlds/dbtags.tld./taglib-location./taglib

考题 Which two are valid values for the  element inside a  element of a web application deployment descriptor?()A、 NULLB、 SECUREC、 INTEGRALD、 ENCRYPTEDE、 CONFIDENTIAL

考题 Which two actions protect a resource file from direct HTTP access within a web application?()A、Placing it in the /secure directoryB、Placing it in the /WEB-INF directoryC、Placing it in the /META-INF/secure directoryD、Creating a  element within the deployment descriptor

考题 Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: % int i = 12; % %= i %  What is the result?()A、b/bB、b12/bC、The JSP fails to execute.D、% int i = 12 %b%= i %/b

考题 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、tlduridbtags/urilocation/WEB-INF/tlds/dbtags.tld/location/tldB、tagliburidbtags/urilocation/WEB-INF/tlds/dbtags.tld/location. /taglibC、tld. tld-uridbtags/tld-uri. tld-location/WEB-INF/tlds/dbtags.tld/tld-location . /tldD、taglibtaglib-uridbtags/taglib-uritaglib-location/WEB-INF/tlds/dbtags.tld. /taglib-location. /taglib

考题 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 pageB、configure a listener in the TLD file using the  elementC、Include a  element in the web application deployment descriptorD、configure a listener in the application deployment descriptor, using the  elementE、Include a class implementing ServletContextListener as part of the web application deploymen

考题 Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()A、ConfigB、RequestC、SessionD、Application

考题 You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() titleA、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB、jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD、jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 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.

考题 Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A、 /conf/web.xmlB、 /WEB-INF/web.xmlC、 /conf/server.xmlD、 /META-INF/web.xmlE、 /WEB-INF/rules.xmlF、 /META-INF/server. Xml

考题 Given in a single JSP page: %@ taglib prefix=’java’ uri=’myTags’ % %@ taglib prefix=’JAVA’ uri=’moreTags’ %  Which two are true?()A、The prefix ’java’ is reserved.B、The URI ’myTags’ must be properly mapped to a TLD file by the web container.C、A translation error occurs because the prefix is considered identical by the web container.D、For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.

考题 Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A、classbr/B、webappbr/C、servletbr/D、codebasebr/E、servlet-class

考题 Which two are valid values for the  element inside a  element ofa web application deployment descriptor?()A、NULLB、SECUREC、INTEGRALD、ENCRYPTEDE、CONFIDENTIAL

考题 单选题Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A  /conf/web.xmlB  /WEB-INF/web.xmlC  /conf/server.xmlD  /META-INF/web.xmlE  /WEB-INF/rules.xmlF  /META-INF/server. Xml

考题 单选题You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()A jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 多选题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?()ATag files can only be accessed using a tagdir attribute.BThe sort.jsp page translates successfully and invokes the tag defined by beta.tag.CThe sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.DTag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.EThe 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 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 tlduridbtags/urilocation/WEB-INF/tlds/dbtags.tld/location/tldB tagliburidbtags/urilocation/WEB-INF/tlds/dbtags.tld/location. /taglibC tld. tld-uridbtags/tld-uri. tld-location/WEB-INF/tlds/dbtags.tld/tld-location . /tldD taglibtaglib-uridbtags/taglib-uritaglib-location/WEB-INF/tlds/dbtags.tld. /taglib-location. /taglib

考题 单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()A b/bB b12/bC The JSP fails to execute.D % int i = 12 %b%= i %/b

考题 单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()A b/bB b12/bC The JSP fails to execute.D % int i = 12 %b%= i %/b

考题 单选题Which element of a web application deployment descriptor  element is required?()A realm-nameB auth-methodC security-roleD transport-guaranteeE web-resource-collection

考题 多选题Which three are guaranteed to be valid for the  element of a web application deployment descriptor?()AFORMBDIGESTCNORMALDENCRYPTEDECLIENT-CERT

考题 单选题Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A classbr/B webappbr/C servletbr/D codebasebr/E servlet-class

考题 单选题Within the web application deployment descriptor, which defines a valid JNDI environment entry()A AB BC CD D

考题 多选题Which two are valid values for the  element inside a  element of a web application deployment descriptor?()ANULLBSECURECINTEGRALDENCRYPTEDECONFIDENTIAL

考题 单选题Which defines the welcome files in a web application deployment descriptor?()A AB BC CD DE E

考题 单选题Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()A jsp:insert page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:insertB jsp:include page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeC jsp:include file=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeD jsp:insert page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:insertE jsp:include page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:include

考题 单选题Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()A ConfigB RequestC SessionD Application