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

题目内容 (请给出正确答案)
多选题
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.


参考答案

参考解析
解析: 暂无解析
更多 “多选题Which three occur during JSP page translation?()AThe jspInit method is called.BThe JSP page implementation class is created.CThe JSP page implementation class is compiled.DThe JSP page is validated for syntatic correctness.EThe associated tag files are validated for syntatic correctness.” 相关考题
考题 Which ensures that a JSP response is of type "text/plain"?()A、%@ page mimeType="text/plain" %B、%@ page contentType="text/plain" %C、%@ page pageEncoding="text/plain" %D、%@ page contentEncoding="text/plain" %E、% response.setEncoding("text/plain"); %

考题 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

考题 Which is a benefit of precompiling a JSP page?()A、It avoids initialization on the first request.B、It provides the ability to debug runtime errors in the application.C、It provides better performance on the first request for the JSP page.D、It avoids execution of the _jspService method on the first request.

考题 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’ /

考题 You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()A、In the init method.B、In the jspInit method.C、In the constructor of the JSP’s Java code.D、In a JSP declaration, which includes an initializer block.E、In a JSP declaration, which includes a static initializer block.

考题 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’ /

考题 You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()A、jsp:insert page=’${bodyURL}’ /B、jsp:insert file=’${bodyURL}’ /C、jsp:include page=’${bodyURL}’ /D、jsp:include file=’${bodyURL}’ /E、jsp:insert page=’%= bodyURL %’ /

考题 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

考题 A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1.%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" % 3. The sort.jsp page is requested. Which two are true?()A、Tag files can only be accessed using a tagdir attribute.B、The sort.jsp page translates successfully and invokes the tag defined by beta.tag.C、The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.D、Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.E、The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

考题 A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()A、idB、nameC、beanD、typeE、scope

考题 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

考题 The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()A、!-- this is a comment --B、% // this is a comment %C、%-- this is a comment --%D、% /** this is a comment **/ %

考题 多选题A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1. 3. The sort.jsp page is requested. Which two are true?()ATag files can only be accessed using a tagdir attribute.BThe sort.jsp page translates successfully and invokes the tag defined by beta.tag.CThe sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.DTag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.EThe tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

考题 多选题A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()AidBnameCbeanDtypeEscope

考题 单选题The trouble-free life of an engine indicates ().A the period of time during which no trouble occurs to the engineB no trouble will occur to the engine all its lifeC trouble may occur freely to the engineD no matter what you do to the engine, no trouble will occur during this period

考题 单选题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’ /

考题 多选题A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()Aprefix:myTag a=foo b=bar c=baz /Bprefix:myTag attributes={foo,bar,baz} /Cprefix:myTag jsp:attribute a=foo b=bar c=baz /Dprefix:myTagjsp:attribute name=afoo/jsp:attributejsp:attribute name=bbar/jsp:attributejsp:attribute name=cbaz/jsp:attribute. /prefix:myTag

考题 多选题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 JSTL code snippet can be used to import content from another web resource?()A c:import url=foo.jsp/B c:import page=foo.jsp/C c:include url=foo.jsp/D c:include page=foo.jsp/

考题 多选题You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()AIn the init method.BIn the jspInit method.CIn the constructor of the JSP’s Java code.DIn a JSP declaration, which includes an initializer block.EIn a JSP declaration, which includes a static initializer block.

考题 单选题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 have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()A jsp:insert page=’${bodyURL}’ /B jsp:insert file=’${bodyURL}’ /C jsp:include page=’${bodyURL}’ /D jsp:include file=’${bodyURL}’ /E jsp:insert page=’%= bodyURL %’ /

考题 单选题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

考题 多选题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