关于JSP标记文件下列说法不正确的是() A、Tag File是JSP2.0新增的功能B、Tag File是JSP1.2新增的功能C、Tag File可以让网页开源直接使用Jsp语法制作标签D、Tag File的扩展名可以是.tag
关于JSP标记文件下列说法不正确的是()
- A、Tag File是JSP2.0新增的功能
- B、Tag File是JSP1.2新增的功能
- C、Tag File可以让网页开源直接使用Jsp语法制作标签
- D、Tag File的扩展名可以是.tag
相关考题:
关于JSP标记文件下列说法不正确的是() A.TagFile是JSP2.0新增的功能B.TagFile是JSP1.2新增的功能C.TagFile可以让网页开源直接使用Jsp语法制作标签D.TagFile的扩展名可以是.tag
PHP的文件上传功能,需要在php.ini配置当中,开启哪项功能?() A.display_errors=onB.file_uploads=onC.short_open_tag=OnD.以上都不正确
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
PHP的文件上传功能,需要在php.ini配置当中,开启哪项功能?()A、display_errors=onB、file_uploads=onC、short_open_tag=OnD、以上都不正确
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
To take advantage of the capabilities of modern browsers that use web standards, such as XHTML andCSS, your web application is being converted from simple JSP pages to JSP Document format. However,one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11. 14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()A、%@ page contentType=’application/javascript’ %B、jsp:page contentType='application/javascript' /C、jsp:document contentType='application/javascript' /D、jsp:directive.page contentType='application/javascript' /E、No declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the script tag. tag.
下列对custom tags的论述哪个不正确()A、是开发者自己定义的tag,可以在JSP页面中使用B、JSP中定制标记符,实质上就是以标记的形式封装了一个俱有独立功能的Java类C、必须依靠TLD文件实现custom tag到实现类的映射D、是某些厂商自己实现的JSP扩展
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.
Which three are valid values for the body-content attribute of a tag directive in a tag file?()A、ELB、JSPC、EmptyD、DynamicE、ScriptlessF、Tagdependent
多选题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.
单选题关于JSP标记文件下列说法不正确的是()ATag File是JSP2.0新增的功能BTag File是JSP1.2新增的功能CTag File可以让网页开源直接使用Jsp语法制作标签DTag File的扩展名可以是.tag
单选题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.
多选题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
多选题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页面中使用BJSP中定制标记符,实质上就是以标记的形式封装了一个俱有独立功能的Java类C必须依靠TLD文件实现custom tag到实现类的映射D是某些厂商自己实现的JSP扩展
多选题Which three are valid values for the body-content attribute of a tag directive in a tag file?()AELBJSPCEmptyDDynamicEScriptlessFTagdependent
单选题To take advantage of the capabilities of modern browsers that use web standards, such as XHTML andCSS, your web application is being converted from simple JSP pages to JSP Document format. However,one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11. 14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()A%@ page contentType=’application/javascript’ %Bjsp:page contentType='application/javascript' /Cjsp:document contentType='application/javascript' /Djsp:directive.page contentType='application/javascript' /ENo declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the script tag. tag.
单选题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?()ASet the body content type to JSP in the TLDBScriptlet code is NOT legal in the body of st:simple.CAdd scripting-enabled=true to the start tag for the st:simple elementDAdd 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