Given:3.publicclassMyTagHandlerextendsTagSupport{4.publicintdoStartTag(){5.//insertcodehere6.//returnanint7.}8.//morecodehere...18.}Thereisasingleattributefoointhesessionscope.Whichthreecodefragments,insertedindependentlyatline5,returnthevalueoftheattribute?()A.Objecto=pageContext.getAttribute(foo);B.Objecto=pageContext.findAttribute(foo);C.Objecto=pageContext.getAttribute(foo,PageContext.SESSION_SCOPE);D.HttpSessions=pageContext.getSession();Objecto=s.getAttribute(foo);
Given:3.publicclassMyTagHandlerextendsTagSupport{4.publicintdoStartTag(){5.//insertcodehere6.//returnanint7.}8.//morecodehere...18.}Thereisasingleattributefoointhesessionscope.Whichthreecodefragments,insertedindependentlyatline5,returnthevalueoftheattribute?()
A.Objecto=pageContext.getAttribute("foo");
B.Objecto=pageContext.findAttribute("foo");
C.Objecto=pageContext.getAttribute("foo",PageContext.SESSION_SCOPE);
D.HttpSessions=pageContext.getSession();Objecto=s.getAttribute("foo");
相关考题:
_________ the right kind of training , these teenage soccer players may one day grew the international stars.A. GivingB. Having givenC. To giveD. Given
____ the economic conditions, these countries are least developed.A: To giveB: GiveC: GivingD: Given
Given1.publicclassFoo{2.publicstaticvoidmain(String[]args)}3.try{return;}4.finally{Syste.out.printIn(Finally”);}5.}6.}Whatistheresult()? A.Theprogramrunsandprintsnothing.B.Theprogramrunsandprints“Finally”.C.Thecodecomiles.Butanexceptionisthrownatruntime.D.Thecodewillnotcompilebecausethecatchblockismissing.
Given:1.%int[]nums={42,420,4200};2.request.setAttribute(foo,nums);%3.${5+3lt6}4.${requestScope[’foo’][0]ne10div0}5.${10div0}Whatistheresult?() A.TruetrueB.FalsetrueC.Falsetrue0D.TruetrueInfinityE.FalsetrueInfinity
Given:3.classMyServletextendsHttpServlet{4.publicvoiddoPut(HttpServletRequestreq,HttpServletResponseresp)throwsServletException,IOException{5.//servletcodehere...26.}27.}IftheDDcontainsasinglesecurityconstraintassociatedwithMyServletanditsonlyhttpmethodtagsandauth-constrainttagsare:http-methodGET/http-methodhttp-methodPUT/http-methodauth-constraintAdmin/auth-constraintWhichfourrequestswouldbeallowedbythecontainer?()A.AuserwhoseroleisAdmincanperformaPUT.B.AuserwhoseroleisAdmincanperformaGET.C.AuserwhoseroleisAdmincanperformaPOST.D.AuserwhoseroleisMembercanperformaPUT.E.AuserwhoseroleisMembercanperformaPOST.F.AuserwhoseroleisMembercanperformaGET.
Given:What can directly access and change the value of the variable name?() A. any classB. only the Target classC. any class in the test packageD. any class that extends Target
He was() from his position as the president of the university. A、movedB、removedC、awardedD、given
Given:1.packagetest;2.3.classTarget{4.publicStringname=hello;5.}Whatcandirectlyaccessandchangethevalueofthevariablename?() A.anyclassB.onlytheTargetclassC.anyclassinthetestpackageD.anyclassthatextendsTarget
[A] set [B] exact [C] given [D] placed