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

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

B

The echo tag handler must define the setAttribute (String key, String value) method

C

The true element must appear in the echo tag TLD

D

The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface

E

The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface


参考答案

参考解析
解析: 暂无解析
更多 “多选题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” 相关考题
考题 关于JSP标记文件下列说法不正确的是()  A、Tag File是JSP2.0新增的功能B、Tag File是JSP1.2新增的功能C、Tag File可以让网页开源直接使用Jsp语法制作标签D、Tag File的扩展名可以是.tag

考题 You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1. %-- tag declaration --% 2.  ... 11. ...  ... ... 99.  The citation tag must store information in the document tag for the document tag to generate a referencesection at the end of the generated web page. The document tag handler follows the Classic tag model andthe citation tag handler follows the Simple tag model. Furthermore, the citation tag could also be embeddedin other custom tags that could have either the Classic or Simple tag handler model. Which tag handlermethod allows the citation tag to access the document tag?()A、public void doTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}B、public void doStartTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}C、public void doTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }D、public void doStartTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }

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

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

考题 下列对custom tags的论述哪个不正确()A、是开发者自己定义的tag,可以在JSP页面中使用B、JSP中定制标记符,实质上就是以标记的形式封装了一个俱有独立功能的Java类C、必须依靠TLD文件实现custom tag到实现类的映射D、是某些厂商自己实现的JSP扩展

考题 Company.com is considering converting from IPAT via replacement to IPAT via IP aliasing. What condition of IPAT via IP aliasing must be taken into consideration?()A、 The clients must support gratuitous ARP.B、 The network type must support gratuitous ARP.C、 Additional TCP/IP interfaces must be allocated for backup in case of failure.D、 Using IPAT via IP aliasing will reduce the number of rotating resource groups that can be used.

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

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

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

考题 You have a custom button, with should have a Property "IsActive", one must be able to bind this Property on a class Property.()A、Dependency PropertyB、INotifyPropertyChangedC、net Property

考题 You need to recommend the minimum number of logical unit numbers (LUNs) that must be  provisioned for Cluster1. The recommendation must support the company’s planned changes.   Which number should you recommend?()A、1B、2C、8D、9

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

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

考题 单选题Company.com is considering converting from IPAT via replacement to IPAT via IP aliasing. What condition of IPAT via IP aliasing must be taken into consideration?()A  The clients must support gratuitous ARP.B  The network type must support gratuitous ARP.C  Additional TCP/IP interfaces must be allocated for backup in case of failure.D  Using IPAT via IP aliasing will reduce the number of rotating resource groups that can be used.

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

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

考题 单选题You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1.  2.  ... 11. ...  ... ... 99.  The citation tag must store information in the document tag for the document tag to generate a referencesection at the end of the generated web page. The document tag handler follows the Classic tag model andthe citation tag handler follows the Simple tag model. Furthermore, the citation tag could also be embeddedin other custom tags that could have either the Classic or Simple tag handler model. Which tag handlermethod allows the citation tag to access the document tag?()A public void doTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}B public void doStartTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}C public void doTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }D public void doStartTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }

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

考题 单选题下列对custom tags的论述哪个不正确()A 是开发者自己定义的tag,可以在JSP页面中使用B JSP中定制标记符,实质上就是以标记的形式封装了一个俱有独立功能的Java类C 必须依靠TLD文件实现custom tag到实现类的映射D 是某些厂商自己实现的JSP扩展

考题 多选题Which three pre-conditions must be met before an OSPF router can perform graceful restart? ()ARouter must be an ABR.BRouter must contain one sham link.CThe network topology must be stable.DRouter must be able to forward packets.ENeighbors must support graceful restart.

考题 多选题Which pre-conditions must be met before an OSPF router can perform graceful restart?()ARouter must be ABRBRouter must contain one sham link.CThe network topology must be stable.DRouter must be able to forward packets.ENeighbors must support graceful restart.

考题 单选题You need to recommend the minimum number of logical unit numbers (LUNs) that must be  provisioned for Cluster1. The recommendation must support the company’s planned changes.   Which number should you recommend?()A 1B 2C 8D 9

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

考题 单选题Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()A Store the data in a public instance variable in the servlet.B Add an attribute to the request object before using the request dispatcher.C Add an attribute to the context object before using the request dispatcher.D This CANNOT be done as the tag handler has no means to extract this data.

考题 多选题Which three pre-conditions must be met before an OSPF router can perform graceful restart?()ARouter must be ABRBRouter must contain one sham link.CThe network topology must be stable.DRouter must be able to forward packets.ENeighbors must support graceful restart.

考题 单选题You have a custom button, with should have a Property "IsActive", one must be able to bind this Property on a class Property.()A Dependency PropertyB INotifyPropertyChangedC net Property