题目内容 (请给出正确答案)
[主观题]

Assumethecustomtagmy:errorPronealwaysthrowsajava.lang.RuntimeExceptionwiththemessage"

Filenotfound."AnerrorpagehasbeenconfiguredforthisJSPpage.Whichoptionpreventstheexceptionthrownbymy:errorPronefrominvokingtheerrorpagemechanism,andoutputsthemessage"Filenotfound"intheresponse?()

A.<c:trycatch="ex"><my:errorProne/></c:try>${ex.message}

B.<c:catchvar="ex"><my:errorProne/></c:catch>${ex.message}

C.<c:try>.<my:errorProne/>.</c:try>.<c:catchvar="ex"/>.${ex.message}

D.<c:try>.<my:errorProne/>.<c:catchvar="ex"/>.${ex.message}.</c:try>

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“Assumethecustomtagmy:errorPron…”相关的问题

第1题

AJSPpagecontainsataglibdirectivewhoseuriattributehasthevaluedbtags.WhichXMLelementwithinthewebapplicationdeploymentdescriptordefinestheassociatedTLD?()

A.<tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>

B.<taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>.</taglib>

C.<tld>.<tld-uri>dbtags</tld-uri>.<tld-location>/WEB-INF/tlds/dbtags.tld</tld-location>.</tld>

D.<taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld.</taglib-location>.</taglib>

点击查看答案

第2题

ClicktheExhibitbutton.Assumingthetaglibraryintheexhibitisimportedwiththeprefixstock,whichcustomtaginvocationoutputsthecontentsofthevariableexposedbythequotetag?()

A.<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;${var}

B.${var}.&ensp;<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;

C.<;stock:quote&ensp;symbol=";SUNW";>;.&ensp;${var}.&ensp;<;/stock:quote>;

D.<;stock:quote&ensp;symbol=";SUNW";&ensp;var=";quote";&ensp;/>;${quote}

点击查看答案

第3题

WhichtwoaretrueabouttheJSTLcoreiterationcustomtags?()

A.Itmayiterateoverarrays,collections,maps,andstrings.

B.ThebodyofthetagmaycontainELcode,butnotscriptingcode.

C.Whenloopingovercollections,aloopstatusobjectmaybeusedinthetagbody.

D.Itmayiterateoveramap,butonlythekeyofthemappingmaybeusedinthetagbody.

E.Whenloopingoverintegers(forexamplebegin=’1’end=’10’),aloopstatusobjectmaynotbeusedinthetagbody.

点击查看答案

第4题

AssumeaJavaBeancom.example.GradedTestBeanexistsandhas&

AssumeaJavaBeancom.example.GradedTestBeanexistsandhastwoattributes.Theattributenameisoftypejava.lang.Stringandtheattributescoreisoftypejava.lang.Integer.Anarrayofcom.example.

GradedTestBeanobjectsisexposedtothepageinarequest-scopedattributecalledresults.Additionally,anemptyjava.util.HashMapcalledresultMapisplacedinthepagescope.AJSPpageneedstoaddthefirstentryinresultstoresultMap,storingthenameattributeofthebeanasthekeyandthescoreattributeofthebeanasthevalue.

WhichcodesnippetofJSTLcodesatisfiesthisrequirement?()

点击查看答案

第5题

Awebapplicationcontainsatagfilecalledbeta.tagin/WEB-INF/tags/alpha.AJSPpagecalledsort.jspe

xistsinthewebapplicationandcontainsonlythisJSPcode:1.<%@taglibprefix="x"2.tagdir="/WEB-INF/tags/alpha"%>3.<x:beta/>Thesort.jsppageisrequested.Whichtwoaretrue?()

A.Tagfilescanonlybeaccessedusingatagdirattribute.

B.Thesort.jsppagetranslatessuccessfullyandinvokesthetagdefinedbybeta.tag.

C.Thesort.jsppageproducesatranslationerrorbecauseataglibdirectivemustalwayshaveauriattribute.

D.Tagfilescanonlybeplacedin/WEB-INF/tags,andNOTinanysubdirectoriesof/WEB-INF/tags.

E.Thetagdirattributeinline2canbereplacedbyauriattributeifaTLDreferringtobeta.tagiscreatedandaddedtothewebapplication.

点击查看答案

第6题

Given:8.intindex=1:9.Boolean[]test=newboolcan[3];10.boolcanfoo=test[index];Whatistheresult()?

A.foohasthevalueof0.

B.foohasthevalueofnull.

C.foohasthevalueoftrue.

D.foohasthevalueoffalse.

E.An-exceptionisthrown.

F.Thecodewillnotcompile.

点击查看答案

第7题

Whatisthepurposeofsessionmanagement?()

A.Tomanagetheuser’sloginandlogoutactivities.

B.Tostoreinformationontheclient-sidebetweenHTTPrequests.

C.Tostoreinformationontheserver-sidebetweenHTTPrequests.

D.TotellthewebcontainertokeeptheHTTPconnectionalivesoitcanmakesubsequentrequestswithoutthedelayofmakingtheTCPconnection.

点击查看答案

第8题

Inyourwebapplication,youneedtoexecuteablockofcodewheneverthesessionobjectisfirstcreated.Whichdesignwillaccomplishthisgoal?()

A.CreateanHttpSessionListenerclassandimplementthesessionInitializedmethodwiththatblockofcode.

B.CreateanHttpSessionActivationListenerclassandimplementthesessionCreatedmethodwiththatblockofcode.

C.CreateaFilterclass,callthegetSession(false)method,andiftheresultwasnull,thenexecutethat blockofcode.

D.CreateanHttpSessionListenerclassandimplementthesessionCreatedmethodwiththatblockofcode.

点击查看答案

第9题

WhichthreearevalidURLmappingstoaservletinawebdeploymentdescriptor?()

A.*/*

B./*.do

C.myServlet

D./Myservlet

E./MyServlet/*

F.MyServlet/*.isp

点击查看答案

第10题

Whichinterfacemustaclassimplementsothatinstancesoftheclassarenotifiedafteranyobjectisaddedtoasession?()

A.javax.servlet.http.HttpSessionListener

B.javax.servlet.http.HttpSessionValueListener

C.javax.servlet.http.HttpSessionBindingListener

D.javax.servlet.http.HttpSessionAttributeListener

点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
上学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
上学吧
点击打开微信