相关考题

单项选择题 Youarebuildingyourownlayoutmechanismbyincludingdynamiccontentforthepage’sheaderandfootersections.Thefooterisalwaysstatic,buttheheadergeneratesthe<title>tagthatrequiresthepagenametobespecifieddynamicallywhentheheaderisimported.WhichJSPcodesnippetperformstheimportoftheheadercontent?()A.<jsp:includepage=’/WEB-INF/jsp/header.jsp’><jsp:paramname=’pageName’value=’WelcomePage’/></jsp:include>B.<jsp:importpage=’/WEB-INF/jsp/header.jsp’><jsp:paramname=’pageName’value=’WelcomePage’/></jsp:import>C.<jsp:includepage=’/WEB-INF/jsp/header.jsp’><jsp:attributename=’pageName’value=’WelcomePage’/>.</jsp:include>D.<jsp:importpage=’/WEB-INF/jsp/header.jsp’>.<jsp:attributename=’pageName’value=’WelcomePage’/>.</jsp:import>

单项选择题 WhichisabenefitofprecompilingaJSPpage?()

单项选择题 TheJSPdeveloperwantsacommenttobevisibleinthefinaloutputtothebrowser.WhichcommentstyleneedstobeusedinaJSPpage?()

单项选择题 WhichensuresthataJSPresponseisoftype'text/plain'?()

单项选择题 WhichHttpSessionmethodstoresanobjectinasession?()

单项选择题 ACompany.comdeveloperisdesigningamulti-tierwebapplicationanddiscoversaneedtohidethedetailsofestablishingandmaintainingremotecommunicationsfromtheclient.Inaddition,becausethebusinessandresourcetiersaredistributed,theapplicationneedstominimizetheinter-tiernetworktrafficrelatedtoservicingclientrequests.Whichdesignpatterns,workingtogether,addresstheseissues?()A.FrontControllerandTransferObjectB.FrontControllerandServiceLocatorC.BusinessDelegateandTransferObjectD.BusinessdelegateandInterceptingFilterE.Model-View-ControllerandInterceptingFilter

单项选择题 Whichinterfacemustasessionattributeimplementifitneedstobenotifiedwhenawebcontainerpersistsasession?()

单项选择题 AwebapplicationusestheHttpSessionmechanismtodetermineifauseris"loggedin."Whenausersuppliesavalidusernameandpassword,anHttpSessioniscreatedforthatuser.Theuserhasaccesstotheapplicationforonly15minutesafterloggingin.Thecodemustdeterminehowlongtheuserhasbeenloggedin,andifthistimeisgreaterthan15minutes,mustdestroytheHttpSession.Whichmethodin HttpSessionisusedtoaccomplishthis?()A.GetcreationtimeB.InvalidateafterC.GetlastaccessedtimeD.Getmaxinactiveinterval

单项选择题 GivenanHttpServletRequestrequestandanHttpServletResponseresponse:41.HttpSessionsession=null;42.//insertcodehere43.if(session==null){44.//dosomethingifsessiondoesnotexist45.}else{46.//dosomethingifsessionexists47.}Toimplementthedesignintent,whichstatementmustbeinsertedatline42?()A.session=response.getSession();B.session=request.getSession();C.session=request.getSession(true);D.session=request.getSession(false);E.session=request.getSession("jsessionid");

单项选择题 WhichmethodmustbeusedtoencodeaURLpassedasanargumenttoHttpServletResponse.sendRedirectwhenusingURLrewritingforsessiontracking?()

单项选择题 AJSPpageneedstoperformsomeoperationsbeforeservicingthefirstrequest.Wherecanthisbedone?()

单项选择题 Youarebuildingawebapplicationwithaschedulingcomponent.OntheJSP,youneedtoshowthecurrentdate,thedateofthepreviousweek,andthedateofthenextweek.Tohelpyoupresentthisinformation,youhavecreatedthefollowingELfunctionsinthe’d’namespace:name:curDate;signature:java.util.DatecurrentDate()name:addWeek;signature:java.util.DateaddWeek(java.util.Date,int)name:dateString;signature:java.util.StringgetDateString(java.util.Date)WhichELcodesnippetwillgeneratethestringforthepreviousweek?A.${d:dateString(addWeek(curDate(),-1))}B.${d:dateString[addWeek[curDate[],-1]]}C.${d:dateString[d:addWeek[d:curDate[],-1]]}D.${d:dateString(d:addWeek(d:curDate(),-1))}

单项选择题 钱掌柜的买家级别设置不包含以下哪几个等级?()

单项选择题 抵价券的面值没有以下哪种?()

单项选择题 商业信息传播的维度中没有以下哪个?()

单项选择题 支付宝是淘宝唯一的在线付款方式,安全交易的手段不包含以下哪个?()

单项选择题 Whenaddingaelementtoawebapplicationdeploymentdescriptor,theinclusionofwhichsub-elementrequiresthedefinitionofanerrorpage()?

单项选择题 满就送服务不包含以下哪种优惠方式?()

单项选择题 支付宝用以下哪种方式不能支付?()

单项选择题 新商业文明会带来的革命不包含以下哪个方面?()