Awebapplicationcontainsatagfilecalledbeta.tagin/WEB-INF/tags/alpha.AJSPpagecalledsort.jspexistsinthewebapplicationandcontainsonlythisJSPcode:1.%@taglibprefix=x2.tagdir=/WEB-INF/tags/alpha%3.x:beta/Thesort.jsppageisrequested.Whichtwoaretrue?()A.Tagfilescanonlybeaccessedusingatagdirattribute.B.Thesort.jsppagetranslatessuccessfullyandinvokesthetagdefinedbybeta.tag.C.Thesort.jsppageproducesatranslationerrorbecauseataglibdirectivemustalwayshaveauriattribute.D.Tagfilescanonlybeplacedin/WEB-INF/tags,andNOTinanysubdirectoriesof/WEB-INF/tags.E.Thetagdirattributeinline2canbereplacedbyauriattributeifaTLDreferringtobeta.tagiscreatedandaddedtothewebapplication.

Awebapplicationcontainsatagfilecalledbeta.tagin/WEB-INF/tags/alpha.AJSPpagecalledsort.jspexistsinthewebapplicationandcontainsonlythisJSPcode:1.<%@taglibprefix="x"2.tagdir="/WEB-INF/tags/alpha"%>3.<x:beta/>Thesort.jsppageisrequested.Whichtwoaretrue?()

A.Tagfilescanonlybeaccessedusingatagdirattribute.

B.Thesort.jsppagetranslatessuccessfullyandinvokesthetagdefinedbybeta.tag.

C.Thesort.jsppageproducesatranslationerrorbecauseataglibdirectivemustalwayshaveauriattribute.

D.Tagfilescanonlybeplacedin/WEB-INF/tags,andNOTinanysubdirectoriesof/WEB-INF/tags.

E.Thetagdirattributeinline2canbereplacedbyauriattributeifaTLDreferringtobeta.tagiscreatedandaddedtothewebapplication.


相关考题:

Inwhichtwowebapplicationdirectoriescandependentclassesandlibrariesbelocated?() A./WEB-INF/libasaJARfileB./META-INF/libasaJARfileC./classesascompiledclassfilesD./WEB-INF/libascompiledclassfilesE./WEB-INF/classesascompiledclassfilesF./META-INF/classesascompiledclassfiles

WhichpathisrequiredtobepresentwithinaWARfile?() A./classesB./index.htmlC./MANIFEST-INFD./WEB-INF/web.xmlE./WEB-INF/classesF./WEB-INF/index.htmlG./META-INF/index.xml

Youaredevelopingseveraltaglibrariesthatwillbesoldfordevelopmentofthird-partywebapplications.YouareabouttopublishthefirstthreelibrariesasJARfiles:container-tags.jar,advanced-html-form-tags.jar,andbasic-html-form-tags.jar.WhichtwotechniquesareappropriateforpackagingtheTLDfilesforthesetaglibraries?()A.TheTLDmustbelocatedwithintheWEB-INFdirectoryoftheJARfile.B.TheTLDmustbelocatedwithintheMETA-INFdirectoryoftheJARfile.C.TheTLDmustbelocatedwithintheMETA-INF/tld/directoryoftheJARfile.D.TheTLDmustbelocatedwithinasubdirectoryofWEB-INFdirectoryoftheJARfile.E.TheTLDmustbelocatedwithinasubdirectoryofMETA-INFdirectoryoftheJARfile.

GivenanHttpSessionsession.AServletRequestrequest.AndaServletContextcontext.WhichretrievesaURLto/WEBINF/myconfig.xmlwithinawebapplication?() A.session.getResource(“/WEB-INF/myconfig.xml”)B.request.getResource(“/WEB-INF/myconfig.xml”)C.context.getResource(“/WEB-INF/myconfig.xml”)D.getClass().getResource(“/WEB-INF/myconfig.xml”)

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

YouarebuildingJSPpagesthathaveasetofmenusthatarevisiblebasedonauser’ssecurityrole.Thesemenusarehand-craftedbyyourwebdesignteam;forexample,theSalesManagerrolehasamenuinthefile/WEB-INF/html/sales-mgr-menu.html.WhichJSPcodesnippetshouldbeusedtomakethismenuvisibletotheuser?()A.%if(request.isUserInRole(SalesManager)){%%@includefile=’/WEB-INF/html/sales-mgr-menu.html’%%}%B.jsp:iftest=’request.isUserInRole(SalesManager)’%@includefile=’/WEB-INF/html/sales-mgr-menu.html’%/jsp:ifC.%if(request.isUserInRole(SalesManager)){%.jsp:includefile=’/WEB-INF/html/sales-mgr-menu.html’/.%}%D.jsp:iftest=’request.isUserInRole(SalesManager)’jsp:includefile=’/WEB-INF/html/sales-mgr-menu.html’//jsp:if

GivenanHttpSessionsession,aServletRequestrequest,andaServletContextcontext,whichretrievesaURLto/WEB-INF/myconfig.xmlwithinawebapplication?() A.session.getResource(/WEB-INF/myconfig.xml)B.request.getResource(/WEB-INF/myconfig.xml)C.context.getResource(/WEB-INF/myconfig.xml)D.getClass().getResource(/WEB-INF/myconfig.xml)

tags的精准度决定推送客户的精准度()

13、以下实例的输出结果是: tags=[[1,1,1],[2,2,2]] unique_tags=[tag for list in tags for tag in list] print(unique_tags)