A.Createausercalledvipinthesecurityrealm
B.Defineagroupwithinthesecurityrealmandcallitvip
C.Defineasecurity-rolenamedvipinthedeploymentdescriptor
D.Declareasecurity-role-refforvipinthedeploymentdescripto
第1题
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.
第2题
A.Yourdeploymentdescriptorwillneedtocontainthistag:CUSTOM.
B.TherelatedcustomHTMLloginpagemustbenamedloginPage.html.
C.Whenyouusethistypeofauthentication,SSListurnedonautomatically.
D.YoumusthaveataginyourdeploymentdescriptorthatallowsyoutopointtobothaloginHTMLpageandanHTMLpageforhandlinganyloginerrors.
E.IntheHTMLrelatedtoauthenticationforthisapplication,youmustusepredefinedvariablenamesfort hevariablesthatstoretheuserandpasswordvalues.
第3题
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.
第4题
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.
第5题
A.Error
B.Event
C.Object
D.Exception
E.Throwable
F.RuntimeException
第6题
A.ejb-ref
B.jdbc-ref
C.servlet-ref
D.resource-ref
E.javamail-ref
F.resource-env-ref
第7题
A.Placingitinthe/securedirectory
B.Placingitinthe/WEB-INFdirectory
C.Placingitinthe/META-INF/securedirectory
D.Creatingaelementwithinthedeploymentdescriptor
第8题
JSPfilesspecifiedintherequestsbelowexistinthelocationsspecified.Whichtworequests,issuedfromabrowser,willreturnanHTTP404error?()
A.http://www.example.com/SCWCDtestApp/test.jsp
B.http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp
C.http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp
D.http://www.example.com/SCWCDtestApp/Customer/test.jsp
E.http://www.example.com/SCWCDtestApp/META-INF/test.jsp
F.http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp
第9题
A.WARfilesmustbelocatedinthewebapplicationlibrarydirectory.
B.WARfilesmustcontainthewebapplicationdeploymentdescriptor.
C.WARfilesmustbecreatedbyusingarchivetoolsdesignedspecificallyforthatpurpose.
D.ThewebcontainermustservethecontentofanyMETA-INFdirectorylocatedinaWARfile.
E.ThewebcontainermustallowaccesstoresourcesinJARsinthewebapplicationlibrarydirectory.
第10题
come-file>125.<welcome-file>alpha.html</welcome-file>Andthisrequestfromabrowser:http://www.sun.com/SCWCDtestApp/registerWhichstatementiscorrect,whenthecontainerreceivesthisrequest?()
A.ThisdeploymentdescriptorisNOTvalid.
B.Thecontainerfirstlooksintheregisterdirectoryforbeta.html.
C.Thecontainerfirstlooksintheregisterdirectoryforalpha.html.
D.Thecontainerfirstlooksforaservletmappinginthedeploymentdescriptor.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!