Config
Request
Session
Application
第1题:
Which three occur during JSP page translation?()
第2题:
Which the two are concerning the objects available to developers creating tag files?()
第3题:
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
第4题:
Which the JSTL code snippet can be used to import content from another web resource?()
第5题:
The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()
第6题:
<jsp:import file=’foo.jsp’ />
<jsp:import page=’foo.jsp’ />
<jsp:include page=’foo.jsp’ />
<jsp:include file=’foo.jsp’ />
第7题:
Error
Exception
Throwable
Request error
Request exception
第8题:
<c:import url=foo.jsp/>
<c:import page=foo.jsp/>
<c:include url=foo.jsp/>
<c:include page=foo.jsp/>
第9题:
<!-- this is a comment -->
<% // this is a comment %>
<%-- this is a comment --%>
<% /** this is a comment **/ %>
第10题:
<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />
第11题:
<c:import page=*foo.jsp”/>
<c:include url=*foo.jsp”/>
<c:include page=*foo.jsp”/>
Importing cannot be done in JSTL. A standard action must be used instead.
第12题:
Config
Request
Session
Application
第13题:
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?()
第14题:
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?()
第15题:
A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()
第16题:
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?()
第17题:
id
name
bean
type
scope
第18题:
id
type
name
class
scope
create
第19题:
The session object must be declared explicity.
The request and response objects are available implicity.
The output stream is available through the implicit outStream object.
The servlet context is available through the implicit servletContext object.
The JspContext for the tag file is available through the implicit jspContext object.
第20题:
<% List catalog = config.getAttribute(catalog); %>
<% List catalog = context.getAttribute(catalog); %>
<% List catalog = application.getAttribute(catalog); %>
<% List catalog = servletContext.getAttribute(catalog); %>
第21题:
GET
PUT
POST
RETRIEVE
第22题:
<jsp:insert page=’${bodyURL}’ />
<jsp:insert file=’${bodyURL}’ />
<jsp:include page=’${bodyURL}’ />
<jsp:include file=’${bodyURL}’ />
<jsp:insert page=’<%= bodyURL %>’ />
第23题:
Id
Val
Name
Param
Value
Property
第24题:
Id
Type
Name
Class
Yscope