多选题Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()AJava codeBTemplate textCScripting codeDStandard actionEExpression language

题目
多选题
Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()
A

Java code

B

Template text

C

Scripting code

D

Standard action

E

Expression language

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are writing a JSP that includes scriptlet code to declare a List variable and initializes that variable to anArrayList object. Which two JSP code snippets can you use to import these list types?()

  • A、<%! import java.util.*; %>
  • B、<%! import java.util.List;import java.util.ArrayList; %>
  • C、<%@ page import=’java.util.List’import=’java.util.ArrayList’ %>
  • D、<%@ import types=’java.util.List’types=’java.util.ArrayList’ %>
  • E、<%@ page import=’java.util.List,java.util.ArrayList’ %>
  • F、<%@ import types=’java.util.List,java.util.ArrayList’ %>

正确答案:C,E

第2题:

Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.  Which pattern can the developer use to solve this problem?()

  • A、 Transfer Object
  • B、 Service Locator
  • C、 Intercepting Filter
  • D、 Business Delegate

正确答案:D

第3题:

GiventheJSPcode:10.<html>11.<body>12.<jsp:useBeanid=’customer’class=’com.example.Customer’/>13.Hello,${customer.title}${customer.lastName},welcome14.toSqueakyBeans,Inc.15.</body>16.</html>WhichthreetypesofJSPcodeareused?()

A.Javacode

B.Templatetext

C.Scriptingcode

D.Standardaction

E.Expressionlanguage


参考答案:B, D, E

第4题:

Which the JSTL code snippet can be used to import content from another web resource?()

  • A、 <c:import url=*foo.jsp”/> 
  • B、 <c:import page=*foo.jsp”/> 
  • C、 <c:include url=*foo.jsp”/> 
  • D、 <c:include page=*foo.jsp”/> 
  • E、 Importing cannot be done in JSTL. A standard action must be used instead.

正确答案:A

第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  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() <title>

  • A、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
  • B、<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
  • C、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
  • D、<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

正确答案:A

第6题:

You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()

  • A、In the init method.
  • B、In the jspInit method.
  • C、In the constructor of the JSP’s Java code.
  • D、In a JSP declaration, which includes an initializer block.
  • E、In a JSP declaration, which includes a static initializer block.

正确答案:B,D,E

第7题:

Which JSTL code snippet can be used to import content from another web resource?()

  • A、<c:import url="foo.jsp"/>
  • B、<c:import page="foo.jsp"/>
  • C、<c:include url="foo.jsp"/>
  • D、<c:include page="foo.jsp"/>

正确答案:A

第8题:

Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome <%= login.getName() %>Which is equivalent?()

  • A、<%> Welcome <% out.print(login.getName()); %> 
  • B、 Welcome <% writer.print(login.getName()); %> 
  • C、 Welcome <% response.out.print(login.getName()); %>
  • D、 Welcome <% response.writer.print(login.getName()); %> 
  • E、 Welcome <% response.getOutputStream().write(login.getName()); %>

正确答案:A

第9题:

Which JSTL code snippet can be used to perform URL rewriting?()

  • A、<a href=’<c:url url="foo.jsp"/>’ />
  • B、<a href=’<c:link url="foo.jsp"/>’ />
  • C、<a href=’<c:url value="foo.jsp"/>’ />
  • D、<a href=’<c:link value="foo.jsp"/>’ />

正确答案:C

第10题:

11. public interface Status {  12. /* insert code here */ int MY_VALUE = 10;  13. }  Which three are valid on line 12?()

  • A、 final
  • B、 static
  • C、 native
  • D、 public
  • E、 private
  • F、 abstract
  • G、 protected

正确答案:A,B,D

更多相关问题