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

多选题
Given in a single JSP page:   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’.


参考解析

解析: 暂无解析

相关考题:

当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()A、〈jsp:include file=”java.util.*” /〉B、〈jsp:include page=”java.util.*” /〉C、〈%@ page import=”java.util.*” %〉D、〈%@ page include=”java.util.*” %〉

在J2EE中,对于以下的include指令和include动作,书写正确的是() A、jsp:include page=http://localhost:/8080/my.jsp/ B、%@ include file=http://localhost:/8080/my.jsp/C、jsp:include file=http://localhost:/8080/my.jsp/ D、%@ include page=http://localhost:/8080/my.jsp/

在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()A、%@ taglib URL=”/hello”  prefix=”examples”% B、%@ taglib URI=”/hello”  prefix=”examples”% C、%@ taglib url=”/hello”  prefix=”examples”% D、%@ taglib uri=”/hello”  prefix=”examples”%

JSP指令不包括()A、page指令B、taglib指令C、import指令D、include指令

下面哪个方法不属于JSP指令:()A、jsp:param name=”username” value=”liu”/B、%@include file=”head.jsp”%C、%@taglib uri=”/struts.tags” prefix=”s”%D、%@page contectType=”texthtml,charset=gb2312”%

在JSP中,若要在JSP正确使用标签:,在jsp中声明的taglib指令为:%@tagliburi=“/WEB-INF/myTags.tld”prefix=“()”%。A、xB、getKingC、myTagsD、king

在java程序中的my.jsp中要使用标记扩展,下列选项正确的是()。A、%@taglib URL=“/hello”prefix=“examples”%B、%taglib URI=“/hello”prefix=“examples”%C、%@taglib url=“/hello”prefix=“examples”%D、%@taglib uri=“/hello”prefix=“examples”%

jsp指令包括()A、page指令B、taglib指令C、import指令D、include指令

在JSP中如果要导入java.io.*包,应该使用()指令。A、pageB、includeC、forwardD、taglib

JSP的编译指令标记通常是指()。A、Page指令、Include指令和Taglib指令B、Page指令、Include指令和Plugin指令C、Forward指令、Include指令和Taglib指令D、Page指令、Param指令和Taglib指令

要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()A、〈%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %〉B、〈%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %〉C、〈%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %〉D、〈%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %〉

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

A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()A、prefix:myTag a="foo" b="bar" c="baz" /B、prefix:myTag attributes={"foo","bar","baz"} /C、prefix:myTag jsp:attribute a="foo" b="bar" c="baz" /D、prefix:myTagjsp:attribute name="a"foo/jsp:attributejsp:attribute name="b"bar/jsp:attributejsp:attribute name="c"baz/jsp:attribute. /prefix:myTag

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

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

单选题要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()A〈%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core %〉B〈%@ taglib prefix=x uri=http://java.sun.com/jsp/jstl/xml %〉C〈%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt %〉D〈%@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql %〉

多选题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 JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element withinthe web application deployment descriptor defines the associated TLD?()Atlduridbtags/urilocation/WEB-INF/tlds/dbtags.tld/location/tldBtagliburidbtags/urilocation/WEB-INF/tlds/dbtags.tld/location. /taglibCtld. tld-uridbtags/tld-uri. tld-location/WEB-INF/tlds/dbtags.tld/tld-location . /tldDtaglibtaglib-uridbtags/taglib-uritaglib-location/WEB-INF/tlds/dbtags.tld. /taglib-location. /taglib

单选题下面哪个方法不属于JSP指令:()Ajsp:param name=”username” value=”liu”/B%@include file=”head.jsp”%C%@taglib uri=”/struts.tags” prefix=”s”%D%@page contectType=”texthtml,charset=gb2312”%

单选题在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()A%@ taglib URL=”/hello”  prefix=”examples”% B%@ taglib URI=”/hello”  prefix=”examples”% C%@ taglib url=”/hello”  prefix=”examples”% D%@ taglib uri=”/hello”  prefix=”examples”%

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

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

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

单选题当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()A〈jsp:include file=”java.util.*” /〉B〈jsp:include page=”java.util.*” /〉C〈%@ page import=”java.util.*” %〉D〈%@ page include=”java.util.*” %〉

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

单选题在java程序中的my.jsp中要使用标记扩展,下列选项正确的是()。A%@taglib URL=“/hello”prefix=“examples”%B%taglib URI=“/hello”prefix=“examples”%C%@taglib url=“/hello”prefix=“examples”%D%@taglib uri=“/hello”prefix=“examples”%

多选题在J2EE中,对于以下的include指令和include动作,书写正确的是()Ajsp:include page=http://localhost:/8080/my.jsp/B%@ include file=http://localhost:/8080/my.jsp/Cjsp:include file=http://localhost:/8080/my.jsp/D%@ include page=http://localhost:/8080/my.jsp/