A.Compilationsucceedsandlisprinted.
B.Compilationsucceedsand2printed.
C.Anerroratline8causecompilationtofail.
D.Anerroratline14causecomplicationtofail.
E.Complicationsucceedsbutanexceptionisthrownatline14.
第1题
esandexecutesthetagbodyonceforeachheadline.ExposesaNESTEDpagescopedattributecalledheadlineoftypecom.example.Headlinecontainingdetailsforthatheadline.itemOutputstheHTMLforasinglenewsheadline.Acceptsanattributeinfooftypecom.example.Headlinecontainingdetailsfortheheadlinetoberendered.WhichsnippetofJSPcodereturnsthelatestnewsheadlinesinanHTMLtable,oneperrow?()
A.
B.
C.
D.
第2题
A.<ahref=’<c:urlurl="foo.jsp"/>’/>
B.<ahref=’<c:linkurl="foo.jsp"/>’/>
C.<ahref=’<c:urlvalue="foo.jsp"/>’/>
D.<ahref=’<c:linkvalue="foo.jsp"/>’/>
第3题
B.${requestScope[’priority’]=’medium’}
C.<c:setvar="priority"value="medium"/>
D.<c:setvar="priority"scope="request">medium</c:set>
E.<c:setvar="priority"value="medium"scope="request"/>
第4题
ectionofdata.Thisdatacanbedisplayedinseveraldifferentwayssothearchitectonyourprojectdecidedtocreateagenericservletthatgeneratesacomma-delimitedstringsothatvariouspagescanrenderthedataindifferentways.Thisservlettakesonrequestparameter:objectID.AssumethatthisservletismappedtotheURLpattern:/WEB-INF/data.IntheJSPyouarecreating,youneedtosplitthisstringintoitselementsseparatedbycommasandgenerateanHTMLlistfromthedata.WhichJSTLcodesnippetwillaccomplishthisgoal?()
第5题
tethatdecision,youarerequiredtocreateallJSPsusingtheJSPDocumentformat.Inthe reviewOrder.jspxpage,youneedtouseseveralcoreJSTLtagstoprocessthecollectionoforderitemsinthecustomer’sshoppingcart.WhichJSPcodesnippetsmustyouuseinthereviewOrder.jspxpage?()
A.
B.
C.
D.
第7题
A.Createausercalledvipinthesecurityrealm
B.Defineagroupwithinthesecurityrealmandcallitvip
C.Defineasecurity-rolenamedvipinthedeploymentdescriptor
D.Declareasecurity-role-refforvipinthedeploymentdescripto
第8题
etResponseresp)throwsServletException,IOException{5.//servletcodehere...26.}27.}IftheDDcontainsasinglesecurityconstraintassociatedwithMyServletanditsonly<httpmethod>tagsand<auth-constraint>tagsare:<http-method>GET</http-method><http-method>PUT</http-method><auth-constraint>Admin</auth-constraint>Whichfourrequestswouldbeallowedbythecontainer?()
A.AuserwhoseroleisAdmincanperformaPUT.
B.AuserwhoseroleisAdmincanperformaGET.
C.AuserwhoseroleisAdmincanperformaPOST.
D.AuserwhoseroleisMembercanperformaPUT.
E.AuserwhoseroleisMembercanperformaPOST.
F.AuserwhoseroleisMembercanperformaGET.
第9题
A.Yourdeploymentdescriptorwillneedtocontainthistag:CUSTOM.
B.TherelatedcustomHTMLloginpagemustbenamedloginPage.html.
C.Whenyouusethistypeofauthentication,SSListurnedonautomatically.
D.YoumusthaveataginyourdeploymentdescriptorthatallowsyoutopointtobothaloginHTMLpageandanHTMLpageforhandlinganyloginerrors.
E.IntheHTMLrelatedtoauthenticationforthisapplication,youmustusepredefinedvariablenamesfort hevariablesthatstoretheuserandpasswordvalues.
第10题
thefollowingfragmentfromtherelatedJavaEEdeploymentdescriptor:812.<security-role-ref>813.<role-name>Admin</role-name>814.<role-link>Administrator</role-link>815.</security-role-ref>900.<security-role>901.<role-name>Admin</role-name>902.<role-name>Administrator</role-name>903.</security-role>Whatistheresult?()
A.Line24canneverbereached.
B.ThedeploymentdescriptorisNOTvalid.
C.Ifline24executes,theuser’srolewillbeAdmin.
D.Ifline24executes,theuser’srolewillbeAdministrator.
E.Ifline24executestheuser’srolewillNOTbepredictable.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!