The prefix ’java’ is reserved.
The URI ’myTags’ must be properly mapped to a TLD file by the web container.
A translation error occurs because the prefix is considered identical by the web container.
For the tag usage
第1题:
下面哪个方法不属于JSP指令:()
第2题:
在JSP中,若要在JSP正确使用标签:
第3题:
要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()
第4题:
Given in a single JSP page: <%@ taglib prefix=’java’ uri=’myTags’ %> <%@ taglib prefix=’JAVA’ uri=’moreTags’ %> Which two are true?()
第5题:
Given an EL function declared with:11.
第6题:
The TLD must be located within the WEB-INF directory of the JAR file.
The TLD must be located within the META-INF directory of the JAR file.
The TLD must be located within the META-INF/tld/ directory of the JAR file.
The TLD must be located within a subdirectory of WEB-INF directory of the JAR file.
The TLD must be located within a subdirectory of META-INF directory of the JAR file.
第7题:
〈%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core %〉
〈%@ taglib prefix=x uri=http://java.sun.com/jsp/jstl/xml %〉
〈%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt %〉
〈%@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql %〉
第8题:
<tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>
<taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>. </taglib>
<tld>. <tld-uri>dbtags</tld-uri>. <tld-location>/WEB-INF/tlds/dbtags.tld</tld-location> . </tld>
<taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld. </taglib-location>. </taglib>
第9题:
<b></b>
<b>12</b>
The JSP fails to execute.
<% int i = 12 %><b><%= i %></b>
第10题:
%@taglib URL=“/hello”prefix=“examples”%>
%taglib URI=“/hello”prefix=“examples”%>
%@taglib url=“/hello”prefix=“examples”%>
%@taglib uri=“/hello”prefix=“examples”%>
第11题:
The deployment descriptor is invalid.
The container invokes mainError.jsp.
The container invokes castError.jsp.
Neither mainError.jsp nor castError.jsp is invoked.
第12题:
Include a listener directive in a JSP page
configure a listener in the TLD file using the
Include a
configure a listener in the application deployment descriptor, using the
Include a class implementing ServletContextListener as part of the web application deploymen
第13题:
You are developing several tag libraries that will be sold for development of third-party web applications.You are about to publish the first three libraries as JAR files: container-tags.jar,advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which two techniques are appropriate for packaging the TLD files forthese tag libraries?()
第14题:
在java程序中的my.jsp中要使用标记扩展,下列选项正确的是()。
第15题:
第16题:
A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()
第17题:
WAR files must be located in the web application library directory.
WAR files must contain the web application deployment descriptor.
WAR files must be created by using archive tools to designed specifically for that purpose.
The web container must serve the content of any META-INF directory located in a WAR file.
The web container must allow access to resources in JARs in the web application library directory
第18题:
<jsp:param name=”username” value=”liu”/>
<%@include file=”head.jsp”%>
<%@taglib uri=”/struts.tags” prefix=”s”%>
<%@page contectType=”texthtml,charset=gb2312”%>
第19题:
Tag files can only be accessed using a tagdir attribute.
The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.
Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.
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.
第20题:
The function method must have the signature: public String spin().
The method must be mapped to the logical name spin in the web.xml file.
The function method must have the signature: public String spinIt().
The function method must have the signature public static String spin().
The function method must have the signature: public static String spinIt().
The function class must be named Spinner, and must be in the package com.example.
第21题:
The foo initialization parameter CANNOT be set programmatically.
Compilation fails because getInitParameter returns type Object.
The foo initialization parameter is NOT a servlet initialization parameter.
Compilation fails because ServletContext does NOT have a getInitParameter method.
The foo parameter must be defined within the
第22题:
<%@ page contentType=’application/javascript’ %>
<jsp:page contentType='application/javascript' />
<jsp:document contentType='application/javascript' />
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.
第23题:
<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>
<jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>
<jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>
<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>
<jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>