CMS专题

多选题A JSP page needs to instantiate a JavaBean to be used by only that page.  Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()AIdBTypeCNameDClassEYscope

题目
多选题
A JSP page needs to instantiate a JavaBean to be used by only that page.  Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()
A

Id

B

Type

C

Name

D

Class

E

Yscope

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

第1题:

JavaBean可以通过相关jsp动作指令进行调用。下面哪个不是JavaBean可以使用的jsp动作指令?()

  • A、〈jsp:useBean〉
  • B、〈jsp:setProperty〉
  • C、〈jsp:getProperty〉
  • D、〈jsp:setParameter〉

正确答案:D

第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题:

在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

第4题:

在JSP中调用JavaBean时不会用到的标记是()。

  • A、〈javabean〉
  • B、〈jsp:useBean〉
  • C、〈jsp:setProperty〉
  • D、〈jsp:getProperty〉

正确答案:A

第5题:

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

第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、〈%@ page%〉
  • B、〈jsp:useBean〉
  • C、〈jsp:setProperty〉
  • D、〈jsp:getProperty〉

正确答案:B

第9题:

MVC中的MVC分别用()、()、()表示。

  • A、jsp;servlet;javabean
  • B、HTml;javabean;jsp
  • C、javabean;jsp;servlet
  • D、servlet;html;jsp

正确答案:C

第10题:

JSP开发网站的两种模式分为jsp+javabean和jsp+javabean+servlet。


正确答案:正确

更多相关问题