网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "Filenot found." An error page has been configured for this JSP page. Which option prevents the exceptionthrown by my:errorProne from invoking the error page mechanism, and outputs the message "File notfound" in the response?()
A
<c:try catch=ex><my:errorProne /></c:try>${ex.message}
B
<c:catch var=ex><my:errorProne /></c:catch>${ex.message}
C
<c:try>. <my:errorProne />. </c:try>. <c:catch var=ex />. ${ex.message}
D
<c:try>. <my:errorProne />. <c:catch var=ex />. ${ex.message}. </c:try>
参考答案
参考解析
解析:
暂无解析
更多 “单选题Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "Filenot found." An error page has been configured for this JSP page. Which option prevents the exceptionthrown by my:errorProne from invoking the error page mechanism, and outputs the message "File notfound" in the response?()A c:try catch=exmy:errorProne //c:try${ex.message}B c:catch var=exmy:errorProne //c:catch${ex.message}C c:try. my:errorProne /. /c:try. c:catch var=ex /. ${ex.message}D c:try. my:errorProne /. c:catch var=ex /. ${ex.message}. /c:try” 相关考题
考题
I can't understand why my boss is always _____fault with my work.
A.findingB.seekingC.lookingD.making
考题
Though I am always free on Sundays. I seldom watch television. _________.A. So does my sisterB. My sister doesn'tC. My sister is tooD. Nor does my sister
考题
Assumethecustomtagmy:errorPronealwaysthrowsajava.lang.RuntimeExceptionwiththemessageFilenotfound.AnerrorpagehasbeenconfiguredforthisJSPpage.Whichoptionpreventstheexceptionthrownbymy:errorPronefrominvokingtheerrorpagemechanism,andoutputsthemessageFilenotfoundintheresponse?()A.c:trycatch=exmy:errorProne//c:try${ex.message}B.c:catchvar=exmy: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
考题
My parents always buy__my birthday.A.anything nice to
B.anything nice for
C.something nice to
D.something nice for
考题
A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? ()A、 A element in the echo tag LTD must have the value JSPB、 The echo tag handler must define the setAttribute (String key, String value) methodC、 The true element must appear in the echo tag TLDD、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceE、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface
考题
Assume a tag handler extends TagSupport. Which is used within the tag handler to get an attribute “foo” that is in the application scope?()A、 pageContext.getAttribute(“foo”);B、 getPageContext().getAttribute(“foo”);C、 pageContext.getApplicationScope(“foo”);D、 pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);E、 getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);
考题
Given the Tag: Assuming the tag referenced by my Tags: get Advice uses the Classic event model, which is true?()A、 The do After Body method is called.B、 The doEnd Tag method is NOT called.C、 The type attribute may be specified in the TLDD、 The do Start Tag Method must always return SKIP_BODY.E、 The TLD for this tag must NOT include a tag.
考题
If you want to use the Java EE platform’s built-in type of authentication that uses a custom HTML page for authentication. Which two statements are true?()A、Your deployment descriptor will need to contain this tag: CUSTOM.B、The related custom HTML login page must be named loginPage.html.C、When you use this type of authentication, SSL is turned on automatically.D、You must have a tag in your deployment descriptor that allows you to point to both a login HTML pageand an HTML page for handling any login errors.E、In the HTML related to authentication for this application, you must use predefined variable names fort he variables that store the user and password values.
考题
Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()A、 The tag is invoked without a body.B、 The doTAb method throws an exception.C、 The element has the value empty.D、 The tag is called with the attribute skip-body=true
考题
Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()A、 Set the body content type to JSP in the TLDB、 Scriptlet code is NOT legal in the body of st:simpleC、 Add scripting-enabled= “true” to the start tag for the st:simple elementD、 Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag.
考题
Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "Filenot found." An error page has been configured for this JSP page. Which option prevents the exceptionthrown by my:errorProne from invoking the error page mechanism, and outputs the message "File notfound" in the response?()A、c:try catch="ex"my:errorProne //c:try${ex.message}B、c:catch var="ex"my:errorProne //c:catch${ex.message}C、c:try. my:errorProne /. /c:try. c:catch var="ex" /. ${ex.message}D、c:try. my:errorProne /. c:catch var="ex" /. ${ex.message}. /c:try
考题
单选题Assume the tag handler for a st:simple tag extends Simple Tag Support. In what way can scriptlet code beused in the body of st:simple?()A
Set the body content type to JSP in the TLDB
Scriptlet code is NOT legal in the body of st:simple.C
Add scripting-enabled=true to the start tag for the st:simple elementD
Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag
考题
多选题Which two are true about the tag handler referneed by my Tag. ()AThe do Start Tag method is called once.BThe do After Body method is NOT called.CThe EVAL_Page constant is a valid return value for the do End Tag Method.Dthe EVAL_BODY_BUFFERED constant is a valid return value for the do Start Tag method.
考题
单选题He’s always been kind to me—I can’t just turn my ______ on him now that he needs my help.A
headB
earC
backD
hand
考题
单选题Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism and outputs the message "File not found" in the response?()A
AB
BC
CD
DE
E
考题
单选题Given the Tag: Assuming the tag referenced by my Tags: get Advice uses the Classic event model, which is true?()A
The do After Body method is called.B
The doEnd Tag method is NOT called.C
The type attribute may be specified in the TLDD
The do Start Tag Method must always return SKIP_BODY.E
The TLD for this tag must NOT include a tag.
考题
多选题A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? ()AA element in the echo tag LTD must have the value JSPBThe echo tag handler must define the setAttribute (String key, String value) methodCThe true element must appear in the echo tag TLDDThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceEThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface
考题
多选题Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()AThe tag is invoked without a body.BThe doTAb method throws an exception.CThe element has the value empty.DThe tag is called with the attribute skip-body=true
考题
单选题When navigating a vessel,you().A
can always rely on a buoy to be on stationB
can always rely on a buoy to show proper light characteristicsC
should assume a wreck buoy is directly over the wreckD
should never rely on a floating aid to maintain its exact position
考题
单选题Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()A
Set the body content type to JSP in the TLDB
Scriptlet code is NOT legal in the body of st:simpleC
Add scripting-enabled= “true” to the start tag for the st:simple elementD
Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag.
考题
单选题I can’t understand why my boss is always _____ fault with my work.A
findingB
seekingC
lookingD
making
考题
单选题Click the Exhibit button. Assuming the tag library in the exhibit is imported with the prefix stock,which custom tag invocation outputsthe contents of the variable exposed by the quote tag?()A
;stock:quoteensp;symbol=";SUNW";ensp;/;${var}B
${var}.ensp;;stock:quoteensp;symbol=";SUNW";ensp;/;C
;stock:quoteensp;symbol=";SUNW";;.ensp;${var}.ensp;;/stock:quote;D
;stock:quoteensp;symbol=";SUNW";ensp;var=";quote";ensp;/;${quote}
考题
单选题Given the JSP code: and the Classic tag handler code: 5. public int doStartTag() throws JspException { 6. // insert code here 7. // return int 8. } Assume there are no other "foo" attributes in the web application. Which invocation on the pageContextobject,inserted at line 6,assigns "bar" to the variable x?()A
String x = (String) pageContext.getAttribute(foo)B
String x = (String) pageContext.getRequestScope(foo)C
It is NOT possible to access the pageContext object from within doStartTagD
String x = (String) pageContext.getRequest().getAttribute(foo)E
String x = (String) pageContext.getAttribute(foo, PageContext.ANY_SCOPE)
热门标签
最新试卷