多选题Which three occur during JSP page translation?()AThe jspInit method is called.BThe JSP page implementation class is created.CThe JSP page implementation class is compiled.DThe JSP page is validated for syntatic correctness.EThe associated tag files are

题目
多选题
Which three occur during JSP page translation?()
A

The jspInit method is called.

B

The JSP page implementation class is created.

C

The JSP page implementation class is compiled.

D

The JSP page is validated for syntatic correctness.

E

The associated tag files are validated for syntatic correctness.

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

第1题:

如果不希望JSP网页支持Session,应该如何办?()

  • A、调用HttpSession的invalidate()方法
  • B、〈%@ page session="false" /〉
  • C、〈%@ page session 〉
  • D、〈jsp:useBean id= "user" class= "UserData" scope= "session" /〉

正确答案:B

第2题:

A JSP page needs to perform some operations before servicing the first request. Where can this be done?()

  • A、 within a method called jspInit
  • B、 within the page directive of the JSP page
  • C、 within a scriptlet at the top of the JSP page
  • D、 within the  XML element

正确答案:A

第3题:

在J2EE中,如果a是b的父类,b是c的父类,c是d的父类,他们都在包mypackage中。则以下正确的是()

A.<jsp:usebeanid=”mybean”scop=”page”class=”mypackage.d”type=”b”>

B.<jsp:useBeanid=”mybean”scop=”page”class=”mypackage.d”type=”Obiect”/>

C.<jsp:useBeanid=”mybean”scop=”page”class=”mypackage.d”type=”mypackage.a”/>

D.<jsp:usebeanid=”mybean”scop=”page”class=”mypackage.d”type=”a”/>


参考答案:B, C

第4题:

To take advantage of the capabilities of modern browsers that use web standards, such as XHTML andCSS, your web application is being converted from simple JSP pages to JSP Document format. However,one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11.  14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()

  • A、<%@ page contentType=’application/javascript’ %>
  • B、<jsp:page contentType='application/javascript' />
  • C、<jsp:document contentType='application/javascript' />
  • D、<jsp:directive.page contentType='application/javascript' />
  • E、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.

正确答案:D

第5题:

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

第6题:

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?()

  • A、 id
  • B、 type
  • C、 name
  • D、 class
  • E、 scope
  • F、 create

正确答案:A,D

第7题:

Which JSP standard action can be used to import content from a resource called foo.jsp?()

  • A、<jsp:import file=’foo.jsp’ />
  • B、<jsp:import page=’foo.jsp’ />
  • C、<jsp:include page=’foo.jsp’ />
  • D、<jsp:include file=’foo.jsp’ />

正确答案:C

第8题:

在JSP页面中,正确引入JavaBean的是()  

  • A、<%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %>  
  • B、<jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” >  
  • C、<jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” /> 
  • D、<jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” />

正确答案:C

第9题:

Which three occur during JSP page translation?()

  • A、 The jspInit method is called.
  • B、 The JSP page implementation class is created.
  • C、 The JSP page implementation class is compiled.
  • D、 The JSP page is validated for syntatic correctness.
  • E、 The associated tag files are validated for syntatic correctness.

正确答案:B,C,D

第10题:

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?()

  • A、<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
  • B、<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
  • C、<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
  • D、<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />

正确答案:B

更多相关问题