JSP(java server page

题目

JSP(java server pages)是在()语言上开发出来的一种动态网页制作技术。

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

第1题:

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

第2题:

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

第3题:

当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()

  • A、〈jsp:include file=”java.util.*” /〉
  • B、〈jsp:include page=”java.util.*” /〉
  • C、〈%@ page import=”java.util.*” %〉
  • D、〈%@ page include=”java.util.*” %〉

正确答案:C

第4题:

指定一个导入JSP页面的page指令之前,可以在该页面中使用java类吗?


正确答案:可以。JSP容器将page指令中的import属性中指定的所有软件包和类都转换为位于转换后的服务器小程序开始的java import语句,而不管它们出现在JSP页面中的什么位置。因为它会使阅读JSP页面的人感到很迷惑,所以不推荐采取这种方式。

第5题:

现如今国内外最常用的三种动态网页语言是PHP(personal home page)、ASP(active server page)和JSP(java server page)。


正确答案:正确

第6题:

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

第7题:

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

第8题:

page指令的import属性的作用是()。

  • A、定义JSP页面响应的MIME类型
  • B、定义JSP页面使用的脚本语言
  • C、为JSP页面引入JAVA包中的类
  • D、定义JSP页面字符的编码

正确答案:C

第9题:

在JSP中使用JDBC语句访问数据库,正确导入S QL类库的语句是()。 

  • A、<%@ page import=”java.sql.*” %> 
  • B、<%@ page import=” sql.*” %> 
  • C、<%page import=”java.sql.*” %>  
  • D、<%@ import=”java.sql.*” %>

正确答案:A

第10题:

下面关于page指令说法中错误的是()

  • A、page指令用来定义JSP页面中的全局属性
  • B、一个JSP页面只能包含一个page指令
  • C、除了import外,其他page指令定义的属性/值只能出现一次
  • D、language属性用来指示所使用的语言
  • E、“java”是当前唯一可用的JSP语言

正确答案:B

更多相关问题