A.
B.
C.
D.
第1题
A.<ahref=’<c:urlurl="foo.jsp"/>’/>
B.<ahref=’<c:linkurl="foo.jsp"/>’/>
C.<ahref=’<c:urlvalue="foo.jsp"/>’/>
D.<ahref=’<c:linkvalue="foo.jsp"/>’/>
第2题
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"/>
第3题
ectionofdata.Thisdatacanbedisplayedinseveraldifferentwayssothearchitectonyourprojectdecidedtocreateagenericservletthatgeneratesacomma-delimitedstringsothatvariouspagescanrenderthedataindifferentways.Thisservlettakesonrequestparameter:objectID.AssumethatthisservletismappedtotheURLpattern:/WEB-INF/data.IntheJSPyouarecreating,youneedtosplitthisstringintoitselementsseparatedbycommasandgenerateanHTMLlistfromthedata.WhichJSTLcodesnippetwillaccomplishthisgoal?()
第4题
tethatdecision,youarerequiredtocreateallJSPsusingtheJSPDocumentformat.Inthe reviewOrder.jspxpage,youneedtouseseveralcoreJSTLtagstoprocessthecollectionoforderitemsinthecustomer’sshoppingcart.WhichJSPcodesnippetsmustyouuseinthereviewOrder.jspxpage?()
A.
B.
C.
D.
第6题
A.Createausercalledvipinthesecurityrealm
B.Defineagroupwithinthesecurityrealmandcallitvip
C.Defineasecurity-rolenamedvipinthedeploymentdescriptor
D.Declareasecurity-role-refforvipinthedeploymentdescripto
第7题
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.
第8题
A.Yourdeploymentdescriptorwillneedtocontainthistag:CUSTOM.
B.TherelatedcustomHTMLloginpagemustbenamedloginPage.html.
C.Whenyouusethistypeofauthentication,SSListurnedonautomatically.
D.YoumusthaveataginyourdeploymentdescriptorthatallowsyoutopointtobothaloginHTMLpageandanHTMLpageforhandlinganyloginerrors.
E.IntheHTMLrelatedtoauthenticationforthisapplication,youmustusepredefinedvariablenamesfort hevariablesthatstoretheuserandpasswordvalues.
第9题
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.
第10题
tion>103.<web-resource-name>Foo</web-resource-name>104.<url-pattern>/Bar/Baz/*</url-pattern>105.<http-method>POST</http-method>106.</web-resource-collection>107.<auth-constraint>108.<role-name>DEVELOPER</role-name>109.</auth-constraint>110.</security-constraint>Andgiventhat"MANAGER"isavalidrole-name,whichfouraretrueforthissecurityconstraint?()
A.MANAGERcandoaGETonresourcesinthe/Bar/Bazdirectory.
B.MANAGERcandoaPOSTonanyresourceinthe/Bar/Bazdirectory.
C.MANAGERcandoaTRACEonanyresourceinthe/Bar/Bazdirectory.
D.DEVELOPERcandoaGETonresourcesinthe/Bar/Bazdirectory.
E.DEVELOPERcandoonlyaPOSTonresourcesinthe/Bar/Bazdirectory.
F.DEVELOPERcandoaTRACEonanyresourceinthe/Bar/Bazdirectory.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!