网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
A

 Error

B

 Exception

C

 Throwable

D

 Request error

E

 Request exception


参考答案

参考解析
解析: 暂无解析
更多 “单选题Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()A  ErrorB  ExceptionC  ThrowableD  Request errorE  Request exception” 相关考题
考题 GiventhisfragmentfromaJavaEEdeploymentdescriptor:341.error-page342.exception-typejava.lang.Throwable/exception-type343.location/mainError.jsp/location344./error-page345.error-page346.exception-typejava.lang.ClassCastException/exception-type347.location/castError.jsp/location348./error-pageIfthewebapplicationassociatedwiththefragmentabovethrowsaClassCastException.Whichstatementistrue?()A.Thedeploymentdescriptorisinvalid.B.ThecontainerinvokesmainError.jsp.C.ThecontainerinvokescastError.jsp.D.NeithermainError.jspnorcastError.jspisinvoked.

考题 要设置某个JSP页面为错误处理页面,以下page指令正确的是()。A、〈%@ page errorPage="true"%〉B、〈%@ page isErrorPage="true"%〉C、〈%@ page extends="javax.servlet.jsp.JspErrorPage"%〉D、〈%@ page info="error"%〉

考题 Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()A、 ErrorB、 ExceptionC、 ThrowableD、 Request errorE、 Request exception

考题 A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()A、 idB、 typeC、 nameD、 classE、 scopeF、 create

考题 Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: % int i = 12; % %= i %  What is the result?()A、b/bB、b12/bC、The JSP fails to execute.D、% int i = 12 %b%= i %/b

考题 Which JSP standard action can be used to import content from a resource called foo.jsp?()A、jsp:import file=’foo.jsp’ /B、jsp:import page=’foo.jsp’ /C、jsp:include page=’foo.jsp’ /D、jsp:include file=’foo.jsp’ /

考题 Which three occur during JSP page translation?()A、 The jspInit method is called.B、 The JSP page implementation class is created.C、 The JSP page implementation class is compiled.D、 The JSP page is validated for syntatic correctness.E、 The associated tag files are validated for syntatic correctness.

考题 You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()A、jsp:useBean id=’pageBean’ type=’com.example.MyBean’ /B、jsp:useBean id=’pageBean’ class=’com.example.MyBean’ /C、jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ /D、jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ /

考题 Which the two are concerning the objects available to developers creating tag files?()A、 The session object must be declared explicity.B、 The request and response objects are available implicity.C、 The output stream is available through the implicit outStream object.D、 The servlet context is available through the implicit servletContext object.E、 The JspContext for the tag file is available through the implicit jspContext object.

考题 You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() titleA、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB、jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD、jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 Given in a single JSP page: %@ taglib prefix=’java’ uri=’myTags’ % %@ taglib prefix=’JAVA’ uri=’moreTags’ %  Which two are true?()A、The prefix ’java’ is reserved.B、The URI ’myTags’ must be properly mapped to a TLD file by the web container.C、A translation error occurs because the prefix is considered identical by the web container.D、For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.

考题 A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()A、IdB、ValC、NameD、ParamE、ValueF、Property

考题 When is an implicit anchor created?()A、When an object is enclosed by another object. B、When a page break after pagination property is enabled. C、When a link is created between two objects. D、When a keep with anchoring object pagination property is enabled.

考题 You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form. Which code segment should you use? ()A、Protected Sub Page_Error(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Error lblResults.Text = e.ToString() e = NothingEnd SubB、Protected Sub Page_Error(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Error lblResults.Text = Server.GetLastError().ToString() Server.ClearError()End SubC、Protected Sub Page_Error(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Error Response.Write(e.ToString()) e = NothingEnd SubD、Protected Sub Page_Error(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Error Response.Write(Server.GetLastError().ToString()) Server.ClearError()End Sub

考题 单选题要设置某个JSP页面为错误处理页面,以下page指令正确的是()。A 〈%@ page errorPage=true%〉B 〈%@ page isErrorPage=true%〉C 〈%@ page extends=javax.servlet.jsp.JspErrorPage%〉D 〈%@ page info=error%〉

考题 单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()A b/bB b12/bC The JSP fails to execute.D % int i = 12 %b%= i %/b

考题 多选题A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()AidBtypeCnameDclassEscopeFcreate

考题 多选题Which the two are concerning the objects available to developers creating tag files?()AThe session object must be declared explicity.BThe request and response objects are available implicity.CThe output stream is available through the implicit outStream object.DThe servlet context is available through the implicit servletContext object.EThe JspContext for the tag file is available through the implicit jspContext object.

考题 单选题In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored asa List object in the catalog attribute of the webapp’s ServletContext object.  Which scriptlet code snippetgives you access to the catalog object?()A % List catalog = config.getAttribute(catalog); %B % List catalog = context.getAttribute(catalog); %C % List catalog = application.getAttribute(catalog); %D % List catalog = servletContext.getAttribute(catalog); %

考题 单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()A b/bB b12/bC The JSP fails to execute.D % int i = 12 %b%= i %/b

考题 单选题You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()A jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 多选题Given in a single JSP page:   Which two are true?()AThe prefix ’java’ is reserved.BThe URI ’myTags’ must be properly mapped to a TLD file by the web container.CA translation error occurs because the prefix is considered identical by the web container.DFor the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.

考题 单选题You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form. Which code segment should you use?()A protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}B protected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}C protected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString()); e=null;}D protected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}

考题 单选题Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()A jsp:insert page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:insertB jsp:include page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeC jsp:include file=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeD jsp:insert page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:insertE jsp:include page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:include

考题 多选题A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()AIdBValCNameDParamEValueFProperty

考题 单选题Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()A ConfigB RequestC SessionD Application

考题 多选题A JSP page needs to instantiate a JavaBean to be used by only that page.  Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()AIdBTypeCNameDClassEYscope