A.Yourdeploymentdescriptorwillneedtocontainthistag:CUSTOM.
B.TherelatedcustomHTMLloginpagemustbenamedloginPage.html.
C.Whenyouusethistypeofauthentication,SSListurnedonautomatically.
D.YoumusthaveataginyourdeploymentdescriptorthatallowsyoutopointtobothaloginHTMLpageandanHTMLpageforhandlinganyloginerrors.
E.IntheHTMLrelatedtoauthenticationforthisapplication,youmustusepredefinedvariablenamesfort hevariablesthatstoretheuserandpasswordvalues.
第1题
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.
第2题
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.
第3题
A.Error
B.Event
C.Object
D.Exception
E.Throwable
F.RuntimeException
第4题
A.ejb-ref
B.jdbc-ref
C.servlet-ref
D.resource-ref
E.javamail-ref
F.resource-env-ref
第5题
A.Placingitinthe/securedirectory
B.Placingitinthe/WEB-INFdirectory
C.Placingitinthe/META-INF/securedirectory
D.Creatingaelementwithinthedeploymentdescriptor
第6题
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
第7题
A.WARfilesmustbelocatedinthewebapplicationlibrarydirectory.
B.WARfilesmustcontainthewebapplicationdeploymentdescriptor.
C.WARfilesmustbecreatedbyusingarchivetoolsdesignedspecificallyforthatpurpose.
D.ThewebcontainermustservethecontentofanyMETA-INFdirectorylocatedinaWARfile.
E.ThewebcontainermustallowaccesstoresourcesinJARsinthewebapplicationlibrarydirectory.
第8题
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.
第9题
A.request.addCookie(“username”.“joe”)
B.request.setCookie(“username,“joe”)
C.response.addCookie(username”,“joe”))
D.request.addHeader(newCookie(“username”,“joe”))
E.request.addCookie(newCookie(“username”,“joe”))
F.response.addCookie(newCookie(“username”,“joe”))
G.response.addHeader(newCookie(“username”,“joe”))
第10题
A.${requestURI}
B.${request.URI}
C.${request.getURI}
D.${request.requestURI}
E.${requestScope.requestURI}
F.${pageContext.request.requestURI}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!