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?()
第1题:
JSP中JavaBean是通过指令标签()来访问的。
第2题:
A JSP page needs to perform some operations before servicing the first request. Where can this be done?()
第3题:
Which three occur during JSP page translation?()
第4题:
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?()
第5题:
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
第6题:
〈%@ page errorPage=true%〉
〈%@ page isErrorPage=true%〉
〈%@ page extends=javax.servlet.jsp.JspErrorPage%〉
〈%@ page info=error%〉
第7题:
within a method called jspInit
within the page directive of the JSP page
within a scriptlet at the top of the JSP page
within the
第8题:
id
type
name
class
scope
create
第9题:
<%@ page %><%@ page %>作用于整个JSP页面
可以在一个页面中使用多个<%@ page %><%@ page %>指令
为增强程序的可读性,建议将<%@ page %><%@ page %>指令放在JSP文件的开头,但不是必须的
<%@ page %><%@ page %>指令中的属性只能出现一次
第10题:
〈jsp:include file=”java.util.*” /〉
〈jsp:include page=”java.util.*” /〉
〈%@ page import=”java.util.*” %〉
〈%@ page include=”java.util.*” %〉
第11题:
<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>
第12题:
Id
Type
Name
Class
Yscope
第13题:
要设置某个JSP页面为错误处理页面,以下page指令正确的是()。
第14题:
Which JSP standard action can be used to import content from a resource called foo.jsp?()
第15题:
在J2EE中,关于JSP文件中的page指令在JSP文件中出现的位置和次数,正确的是()。
第16题:
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?()
第17题:
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?()
第18题:
id
name
bean
type
scope
第19题:
<jsp:import file=’foo.jsp’ />
<jsp:import page=’foo.jsp’ />
<jsp:include page=’foo.jsp’ />
<jsp:include file=’foo.jsp’ />
第20题:
<c:import url=foo.jsp/>
<c:import page=foo.jsp/>
<c:include url=foo.jsp/>
<c:include page=foo.jsp/>
第21题:
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>
第22题:
The jspInit method is called.
The JSP page implementation class is created.
The JSP page implementation class is compiled.
The JSP page is validated for syntatic correctness.
The associated tag files are validated for syntatic correctness.
第23题:
Id
Val
Name
Param
Value
Property